From bc2dff2cbcb427b0b0c66e7118f0172ca4b70b9c Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 7 Nov 2011 16:25:38 +0000 Subject: [PATCH] * normalize ' to "", and not " ", e.g. Grey's Anatomy => Greys Anatomy --- .../net/sourceforge/filebot/similarity/SeriesNameMatcher.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/similarity/SeriesNameMatcher.java b/source/net/sourceforge/filebot/similarity/SeriesNameMatcher.java index e0f93536..0ee9a86f 100644 --- a/source/net/sourceforge/filebot/similarity/SeriesNameMatcher.java +++ b/source/net/sourceforge/filebot/similarity/SeriesNameMatcher.java @@ -202,7 +202,8 @@ public class SeriesNameMatcher { name = name.replaceAll("\\([^\\(]*\\)", ""); name = name.replaceAll("\\[[^\\[]*\\]", ""); - // remove special characters + // remove/normalize special characters + name = name.replaceAll("['`ยด]+", ""); name = name.replaceAll("[\\p{Punct}\\p{Space}]+", " "); return name.trim();