From 85b4b69398f87df50d3eab1394fc42683c055d71 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 9 Nov 2011 02:52:30 +0000 Subject: [PATCH] * update here as well --- .../sourceforge/filebot/similarity/NameSimilarityMetric.java | 2 +- source/net/sourceforge/filebot/similarity/SubstringMetric.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();