mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-13 12:55:00 -05:00
Backwards compatibility: Make sure String.replaceAll(String) defaults to String.replaceAll(String, "")
This commit is contained in:
parent
8390e65ee9
commit
4979de00f7
@ -150,6 +150,10 @@ public class ExpressionFormatMethods {
|
||||
});
|
||||
}
|
||||
|
||||
public static String replaceAll(String self, String pattern) {
|
||||
return compile(pattern).matcher(self).replaceAll("");
|
||||
}
|
||||
|
||||
public static String removeAll(String self, String pattern) {
|
||||
return compile(pattern, CASE_INSENSITIVE | UNICODE_CHARACTER_CLASS | MULTILINE).matcher(self).replaceAll("").trim();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user