From a28d2e4ccf3b25ca241f0871f04e506ad0f3fb80 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 21 Jun 2017 09:19:14 +0800 Subject: [PATCH] Added String.isLatin() @see https://www.filebot.net/forums/viewtopic.php?f=5&t=2&p=28963#p28963 --- 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 82619aa5..b97de455 100644 --- a/source/net/filebot/format/ExpressionFormatMethods.java +++ b/source/net/filebot/format/ExpressionFormatMethods.java @@ -398,7 +398,7 @@ public class ExpressionFormatMethods { } public static boolean isLatin(String self) { - return Normalizer.normalize(self, Normalizer.Form.NFD).replaceAll("\\p{InCombiningDiacriticalMarks}", "").matches("^\\p{InBasicLatin}+$"); + return Normalizer.normalize(self, Normalizer.Form.NFD).replaceAll("\\p{InCombiningDiacriticalMarks}", "").matches("\\p{InBasicLatin}+"); } /**