diff --git a/frappe/utils/__init__.py b/frappe/utils/__init__.py index 8974300c98..d807c018f1 100644 --- a/frappe/utils/__init__.py +++ b/frappe/utils/__init__.py @@ -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():