Added String.isLatin()
@see https://www.filebot.net/forums/viewtopic.php?f=5&t=2&p=28963#p28963
This commit is contained in:
parent
395ec3a4b8
commit
a28d2e4ccf
|
@ -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}+");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue