Skip to content

Commit

Permalink
Adding another native escape
Browse files Browse the repository at this point in the history
  • Loading branch information
pfuntner committed Nov 11, 2024
1 parent c953246 commit 35fb3cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/find-invalid-escapes
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def process(source):
pos += 1
else:
if c == '\\' and pos < len(data)-1:
if data[pos+1] not in [quote, 'n', 'o', 'r', 't', 'x'] and not raw:
if data[pos+1] not in [quote, 'n', 'o', 'r', 't', 'u', 'x'] and not raw:
if args.list:
print(source)
return
Expand Down

0 comments on commit 35fb3cb

Please sign in to comment.