mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 13:59:49 -04:00
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…
x
Reference in New Issue
Block a user