From 67caeb7ba69a32c5af4d4fd84b807e76ff329d99 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 10 Oct 2014 18:17:31 +0000 Subject: [PATCH] * not simplifying alias list for each entry should't cause any noticeable performance differences --- BuildData.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BuildData.groovy b/BuildData.groovy index e5dacaa7..96838173 100644 --- a/BuildData.groovy +++ b/BuildData.groovy @@ -77,7 +77,7 @@ def getNamePermutations(names) { out = out.findAll{ it.length() >= 2 && !(it ==~ /[1][0-9][1-9]/) && !(it =~ /^[a-z]/) && it =~ /^[@.\p{L}\p{Digit}]/ } // MUST START WITH UNICODE LETTER out = out.findAll{ !MediaDetection.releaseInfo.structureRootPattern.matcher(it).matches() } // IGNORE NAMES THAT OVERLAP WITH MEDIA FOLDER NAMES - out = out.findAll{ a -> names.take(1).contains(a) || out.findAll{ b -> normalize(a).startsWith(normalize(b) + ' ') }.size() == 0 } // TRY TO EXCLUDE REDUNDANT SUBSTRING DUPLICATES + // out = out.findAll{ a -> names.take(1).contains(a) || out.findAll{ b -> normalize(a).startsWith(normalize(b) + ' ') }.size() == 0 } // TRY TO EXCLUDE REDUNDANT SUBSTRING DUPLICATES return out }