Skip to content

Commit

Permalink
ugly hack to fix parsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
femnad committed Dec 26, 2023
1 parent 81674a3 commit dcfd9a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ pub fn main() {
let mut matches: HashMap<String, u8> = 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;
Expand Down

0 comments on commit dcfd9a2

Please sign in to comment.