Fix 6993264
dkl9

dkl9 commited on 2025-203 16:13:48
Showing 1 changed files, with 2 additions and 2 deletions.

... ...
@@ -85,8 +85,8 @@ if __name__ == "__main__":
85 85
         token_pattern = args.token
86 86
     else:
87 87
         token_pattern = f"[{args.separators}]*[^{args.separators}\r\n]+"
88
-    entry_pattern = re.compile(f"({token_pattern})+", re_flags)
89
-    token_pattern = re.compile(token_pattern, re_flags)
88
+    entry_pattern = re.compile(f"({token_pattern})+", RE_FLAGS)
89
+    token_pattern = re.compile(token_pattern, RE_FLAGS)
90 90
     t = Trie()
91 91
     for filename in args.files:
92 92
         with sys.stdin if filename == "-" else open(filename, "r") as handle:
93 93