Merge pull request #13229 from josephalbaph/patch-9
fix: Invalid escape sequence
This commit is contained in:
commit
19f4a73f8a
1 changed files with 1 additions and 1 deletions
|
|
@ -283,7 +283,7 @@ def append_number_if_name_exists(doctype, value, fieldname="name", separator="-"
|
|||
filters.update({fieldname: value})
|
||||
exists = frappe.db.exists(doctype, filters)
|
||||
|
||||
regex = "^{value}{separator}\d+$".format(value=re.escape(value), separator=separator)
|
||||
regex = "^{value}{separator}\\d+$".format(value=re.escape(value), separator=separator)
|
||||
|
||||
if exists:
|
||||
last = frappe.db.sql("""SELECT `{fieldname}` FROM `tab{doctype}`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue