added String.removeIllegalCharacters convenience function

This commit is contained in:
Reinhard Pointner 2016-01-08 13:28:46 +00:00
parent 80e7da3820
commit 9949224e2b
1 changed files with 4 additions and 0 deletions

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