mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 08:48:51 -05: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();
|
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.
|
* Replace space characters with a given characters.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user