Skip to content

Commit bc26874

Browse files
Use possesive quantifier for optimization.
1 parent e814cfa commit bc26874

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/xml/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ def is_valid_name(name):
2121
'\u200C\u200D\u203F\u2040'
2222
'\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF'
2323
'\uF900-\uFDCF\uFDF0-\uFFFD\U00010000-\U000EFFFF'
24-
']*',
24+
']*+',
2525
name) is not None

0 commit comments

Comments
 (0)