From 06edb22e5e6924deecf58a4ded5538ddba0ed303 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 30 Jan 2013 11:50:58 +0000 Subject: [PATCH] Fix matching issue causing "TerraNova/Terra.Nova.S01E01.mkv" to be matched to NOVA instead of Terra Nova --- source/net/sourceforge/filebot/similarity/EpisodeMetrics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/similarity/EpisodeMetrics.java b/source/net/sourceforge/filebot/similarity/EpisodeMetrics.java index c244c659..fdc07dd7 100644 --- a/source/net/sourceforge/filebot/similarity/EpisodeMetrics.java +++ b/source/net/sourceforge/filebot/similarity/EpisodeMetrics.java @@ -159,7 +159,7 @@ public enum EpisodeMetrics implements SimilarityMetric { String[] names = new String[objects.length]; for (int i = 0; i < objects.length; i++) { - names[i] = normalizeObject(objects[i]); + names[i] = normalizeObject(objects[i]).replaceAll("\\s", ""); } return names;