Добавлена ошибка при добавлении паттерна с неправильной регуляркой

This commit is contained in:
serega6531
2020-03-13 02:13:14 +03:00
parent 065960dba1
commit 1854cf174b
2 changed files with 12 additions and 2 deletions

View File

@@ -99,7 +99,7 @@ public class PatternMatcher {
return a <= x && x <= b;
}
private java.util.regex.Pattern compilePattern(Pattern pattern) {
static java.util.regex.Pattern compilePattern(Pattern pattern) {
return compiledPatterns.computeIfAbsent(pattern.getValue(), java.util.regex.Pattern::compile);
}