mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-02 08:25:02 -04:00
added String.removeIllegalCharacters convenience function
This commit is contained in:
parent
80e7da3820
commit
9949224e2b
@ -95,6 +95,10 @@ public class ExpressionFormatMethods {
|
||||
return compile(pattern, CASE_INSENSITIVE | UNICODE_CHARACTER_CLASS | MULTILINE).matcher(self).replaceAll("").trim();
|
||||
}
|
||||
|
||||
public static String removeIllegalCharacters(String self) {
|
||||
return FileUtilities.validateFileName(Normalization.normalizeQuotationMarks(self));
|
||||
}
|
||||
|
||||
/**
|
||||
* Replace space characters with a given characters.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user