* normalize ' to "", and not " ", e.g. Grey's Anatomy => Greys Anatomy

This commit is contained in:
Reinhard Pointner 2011-11-07 16:25:38 +00:00
parent a55070088a
commit bc2dff2cbc
1 changed files with 2 additions and 1 deletions

View File

@ -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();