Skip to content

Commit

Permalink
Translate handling for additional separators
Browse files Browse the repository at this point in the history
For example, commas from debug output
  • Loading branch information
Casper-Guo committed Jul 2, 2024
1 parent de4d921 commit a3eb3ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def main(python_seeds: bool, binary_output: bool, verify: bool, in_file: Path, o

with open(in_file, mode="r") as fin, open(out_file, mode="w+") as fout:
for line in fin:
seed = int(line.strip())
seed = int("".join(filter(str.isdigit, line.strip())))
translated = translator(seed, verify=verify)

if binary_output:
Expand Down

0 comments on commit a3eb3ab

Please sign in to comment.