From dcfd9a2d8b6e4694d571af33f40244440a588f4d Mon Sep 17 00:00:00 2001 From: fcd <1352288+femnad@users.noreply.github.com> Date: Tue, 26 Dec 2023 18:20:58 +0300 Subject: [PATCH] ugly hack to fix parsing bug --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index e003110..1d1f54a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -61,7 +61,9 @@ pub fn main() { let mut matches: HashMap = HashMap::new(); let mut match_index = 1; for line in merged_lines { - for capture in re.captures_iter(&line) { + let sanitized = line.replace("=3D", "="); + + for capture in re.captures_iter(&sanitized) { let url_match = capture.get(1).unwrap().as_str(); if matches.contains_key(url_match) { continue;