Skip to content

Commit a17cf32

Browse files
committed
Strictly extract only lower ascii table character strings
1 parent 094f544 commit a17cf32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dfint64_patch/extract_strings/from_raw_bytes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
def is_allowed(x: int) -> bool:
18-
return x in allowed or (ord(" ") <= x and x not in forbidden)
18+
return x in allowed or (ord(" ") <= x < 128 and x not in forbidden)
1919

2020

2121
def possible_to_decode(c: bytes, encoding) -> bool:

0 commit comments

Comments
 (0)