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