1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 16:28:51 -05:00

added String.removeIllegalCharacters convenience function

This commit is contained in:
Reinhard Pointner 2016-01-08 13:28:46 +00:00
parent 80e7da3820
commit 9949224e2b

View File

@ -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.
*