From 9bc99007e120661118798e8c35c472acdc7b9826 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 6 Jun 2018 16:57:51 +0700 Subject: [PATCH] Don't use sortName() transformation when applying String.acronym() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ➔ https://www.filebot.net/forums/viewtopic.php?f=8&t=5969 --- source/net/filebot/format/ExpressionFormatMethods.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/format/ExpressionFormatMethods.java b/source/net/filebot/format/ExpressionFormatMethods.java index 8035e372..f73dd51e 100644 --- a/source/net/filebot/format/ExpressionFormatMethods.java +++ b/source/net/filebot/format/ExpressionFormatMethods.java @@ -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) {