diff --git a/frappe/database/schema.py b/frappe/database/schema.py index 9bd0a1e45b..d29bff1615 100644 --- a/frappe/database/schema.py +++ b/frappe/database/schema.py @@ -5,7 +5,7 @@ from frappe import _ from frappe.utils import cint, cstr, flt from frappe.utils.defaults import get_not_null_defaults -# This matches anything that isn't [a-zA-Z0-9_] +# This matches anything that isn't Unicode Word Characters, Numbers and Underscore. SPECIAL_CHAR_PATTERN = re.compile(r"[\W]", flags=re.UNICODE) VARCHAR_CAST_PATTERN = re.compile(r"varchar\(([\d]+)\)")