From 4a354409769e01b3c35d8a3ccd154c0e37cd4571 Mon Sep 17 00:00:00 2001 From: 3rd Iteration Date: Fri, 8 Mar 2024 20:38:37 -0500 Subject: [PATCH] Fix handling of passing delimiters to typo map files --- btcrecover/btcrpass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btcrecover/btcrpass.py b/btcrecover/btcrpass.py index c966b2a3..976583e5 100644 --- a/btcrecover/btcrpass.py +++ b/btcrecover/btcrpass.py @@ -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)