From 708e44053e686328437a76284d68636d62cc8ef9 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Fri, 12 Nov 2021 19:06:07 -0800 Subject: [PATCH] Ignore dashes and apostrophes when finding dupes. --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index e87265f..768c293 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -367,6 +367,8 @@ impl Movies { let parent = clean_path_parent(path) .to_string_lossy() .to_ascii_lowercase() + .replace("-", " ") + .replace("'", "") .to_string(); if date_re.is_match(&parent) { movie_counter.entry(parent).or_insert(Vec::new()).push(m);