Skip to content

Commit

Permalink
Fix missing raw string for '[^\r\n]'
Browse files Browse the repository at this point in the history
  • Loading branch information
RS-Credentive committed Aug 14, 2024
1 parent 4a16680 commit 9acc594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elementpath/regex/patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def parse_character_class() -> CharacterClass:
while pos < pattern_len:
ch = pattern[pos]
if ch == '.':
regex.append(ch if dot_all else '[^\r\n]')
regex.append(ch if dot_all else r'[^\r\n]')
elif ch in ('^', '$'):
if not anchors:
regex.append(r'\%s' % ch)
Expand Down

0 comments on commit 9acc594

Please sign in to comment.