* make sure important tokens are not normalized away
This commit is contained in:
parent
3436eac471
commit
a6338bc430
|
@ -5,6 +5,7 @@ package net.sourceforge.filebot.ui.rename;
|
||||||
import static java.lang.Math.*;
|
import static java.lang.Math.*;
|
||||||
import static java.util.Arrays.*;
|
import static java.util.Arrays.*;
|
||||||
import static java.util.Collections.*;
|
import static java.util.Collections.*;
|
||||||
|
import static net.sourceforge.filebot.hash.VerificationUtilities.*;
|
||||||
import static net.sourceforge.tuned.FileUtilities.*;
|
import static net.sourceforge.tuned.FileUtilities.*;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
@ -238,9 +239,8 @@ public enum MatchSimilarityMetric implements SimilarityMetric {
|
||||||
name = getNameWithoutExtension(((AbstractFile) object).getName());
|
name = getNameWithoutExtension(((AbstractFile) object).getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove group names and checksums, any [...] or (...)
|
// remove checksums, any [...] or (...)
|
||||||
name = name.replaceAll("\\([^\\(]*\\)", "");
|
name = removeEmbeddedChecksum(name);
|
||||||
name = name.replaceAll("\\[[^\\[]*\\]", "");
|
|
||||||
|
|
||||||
// remove/normalize special characters
|
// remove/normalize special characters
|
||||||
name = name.replaceAll("['`´]+", "");
|
name = name.replaceAll("['`´]+", "");
|
||||||
|
|
Loading…
Reference in New Issue