diff --git a/source/net/sourceforge/filebot/similarity/NameSimilarityMetric.java b/source/net/sourceforge/filebot/similarity/NameSimilarityMetric.java index 3cc524bf..3ed7fb16 100644 --- a/source/net/sourceforge/filebot/similarity/NameSimilarityMetric.java +++ b/source/net/sourceforge/filebot/similarity/NameSimilarityMetric.java @@ -29,7 +29,7 @@ public class NameSimilarityMetric implements SimilarityMetric { String name = object.toString(); // normalize separators - name = name.replaceAll("[\\p{Punct}\\p{Space}]+", " "); + name = name.replaceAll("['`´]+", "").replaceAll("[\\p{Punct}\\p{Space}]+", " "); // normalize case and trim return name.trim().toLowerCase(); diff --git a/source/net/sourceforge/filebot/similarity/SubstringMetric.java b/source/net/sourceforge/filebot/similarity/SubstringMetric.java index 461766af..f31c3edd 100644 --- a/source/net/sourceforge/filebot/similarity/SubstringMetric.java +++ b/source/net/sourceforge/filebot/similarity/SubstringMetric.java @@ -20,7 +20,7 @@ public class SubstringMetric implements SimilarityMetric { String name = object.toString(); // normalize separators - name = name.replaceAll("[\\p{Punct}\\p{Space}]+", " "); + name = name.replaceAll("['`´]+", "").replaceAll("[\\p{Punct}\\p{Space}]+", " "); // normalize case and trim return name.trim().toLowerCase();