Skip to content

Commit

Permalink
Fix handling of passing delimiters to typo map files
Browse files Browse the repository at this point in the history
  • Loading branch information
3rdIteration committed Mar 9, 2024
1 parent 03f9015 commit 4a35440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion btcrecover/btcrpass.py
Original file line number Diff line number Diff line change
Expand Up @@ -6819,7 +6819,7 @@ def parse_mapfile(map_file, running_hash = None, feature_name = "map", same_perm
#
# Remove the trailing newline, then split the line exactly
# once on the specified delimiter (default: whitespace)
split_line = line.strip("\r\n").split(args.delimiter, 1)
split_line = line.strip("\r\n").split(args.delimiter.encode().decode('unicode_escape'), 1)
if split_line in ([], [tstr('')]): continue # ignore empty lines
if len(split_line) == 1:
error_exit(feature_name, "file '"+map_file.name+"' has an empty replacement list on line", line_num)
Expand Down

0 comments on commit 4a35440

Please sign in to comment.