Skip to content

Commit

Permalink
Merge pull request #69 from deronnax/fix-invalid-escape-sequence
Browse files Browse the repository at this point in the history
fix invalid escape sequence in regex
  • Loading branch information
asciimoo committed Jan 4, 2024
2 parents 239e4da + e9930d9 commit 1c22c70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exrex.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
sre_parse.CATEGORY_SPACE: sorted(sre_parse.WHITESPACE), sre_parse.CATEGORY_SPACE: sorted(sre_parse.WHITESPACE),
sre_parse.CATEGORY_DIGIT: sorted(sre_parse.DIGITS), sre_parse.CATEGORY_DIGIT: sorted(sre_parse.DIGITS),
sre_parse.CATEGORY_WORD: [unichr(x) for x in range(256) if 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 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)] 'category_any': [unichr(x) for x in range(32, 123)]
} }


Expand Down

0 comments on commit 1c22c70

Please sign in to comment.