Browse Source

accented characters are valid names

version-14
Zlash65 7 years ago
parent
commit
5f068f7e4f
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      frappe/utils/__init__.py

+ 3
- 1
frappe/utils/__init__.py View File

@@ -491,7 +491,9 @@ def check_format(email_id):

def get_name_from_email_string(email_string, email_id, name):
name = email_string.replace(email_id, '')
name = re.sub('[^A-Za-z0-9 ]+', '', name).strip()
name = re.sub('[^A-Za-z0-9\u00C0-\u024F\/\_\' ]+', '', name).strip()
if not name:
name = email_id
return name

def get_installed_apps_info():


Loading…
Cancel
Save