1
0
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:
Reinhard Pointner 2019-03-07 11:09:03 +07:00
parent 8390e65ee9
commit 4979de00f7

View File

@ -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();
}