From 6d12ae7a402d5e23675a2572e447a335be72738c Mon Sep 17 00:00:00 2001 From: diptanilsaha Date: Mon, 6 Apr 2026 21:22:32 +0530 Subject: [PATCH] docs(schema): fixed `SPECIAL_CHAR_PATTERN` constant definition string (#38433) --- frappe/database/schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]+)\)")