1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 16:28:51 -05:00

* update here as well

This commit is contained in:
Reinhard Pointner 2011-11-09 02:52:30 +00:00
parent b4532f1832
commit 85b4b69398
2 changed files with 2 additions and 2 deletions

View File

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

View File

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