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:
parent
8526389306
commit
9bc99007e1
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user