Merge pull request #69 from deronnax/fix-invalid-escape-sequence

fix invalid escape sequence in regex
This commit is contained in:
Adam Tauber 2024-01-04 15:33:35 +01:00 committed by GitHub
commit 1c22c7066f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -52,9 +52,9 @@ CATEGORIES = {
sre_parse.CATEGORY_SPACE: sorted(sre_parse.WHITESPACE),
sre_parse.CATEGORY_DIGIT: sorted(sre_parse.DIGITS),
sre_parse.CATEGORY_WORD: [unichr(x) for x in range(256) if
match('\w', unichr(x), U)],
match(r'\w', unichr(x), U)],
sre_parse.CATEGORY_NOT_WORD: [unichr(x) for x in range(256) if
match('\W', unichr(x), U)],
match(r'\W', unichr(x), U)],
'category_any': [unichr(x) for x in range(32, 123)]
}