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
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ public class ExpressionFormatMethods {
* e.g. "Deep Space 9" -> "DS9"
*/
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) {