1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 08:18:52 -05:00

Don't use sortName() transformation when applying String.acronym()

https://www.filebot.net/forums/viewtopic.php?f=8&t=5969
This commit is contained in:
Reinhard Pointner 2018-06-06 16:57:51 +07:00
parent 8526389306
commit 9bc99007e1

View File

@ -243,7 +243,7 @@ public class ExpressionFormatMethods {
* e.g. "Deep Space 9" -> "DS9" * e.g. "Deep Space 9" -> "DS9"
*/ */
public static String acronym(String self) { public static String acronym(String self) {
return compile("\\s|\\B\\p{Alnum}+", UNICODE_CHARACTER_CLASS).matcher(space(sortName(self), " ")).replaceAll(""); return compile("\\s|\\B\\p{Alnum}+", UNICODE_CHARACTER_CLASS).matcher(space(self, " ")).replaceAll("");
} }
public static String truncate(String self, int limit) { public static String truncate(String self, int limit) {