This commit is contained in:
parent
86b832d03c
commit
d5349a6e5e
1 changed files with 19 additions and 17 deletions
|
|
@ -103,7 +103,8 @@ public final class ValidateSymbolsRule<R> implements IValidationRule<ImdgValidat
|
||||||
String forHash = validationSymbols.stream().map(ValidationSymbols::getSymbols).collect(Collectors.joining());
|
String forHash = validationSymbols.stream().map(ValidationSymbols::getSymbols).collect(Collectors.joining());
|
||||||
Integer hash = forHash.hashCode();
|
Integer hash = forHash.hashCode();
|
||||||
if (!Objects.equals(allowedSymbolsHash.get(), hash)) {
|
if (!Objects.equals(allowedSymbolsHash.get(), hash)) {
|
||||||
Matcher matcher = rangePattern.matcher(forHash);
|
for (ValidationSymbols symbols : validationSymbols) {
|
||||||
|
Matcher matcher = rangePattern.matcher(symbols.getSymbols());
|
||||||
Set<Character> currAllowedSymbols = new HashSet<>();
|
Set<Character> currAllowedSymbols = new HashSet<>();
|
||||||
while (matcher.find()) {
|
while (matcher.find()) {
|
||||||
String part = matcher.group();
|
String part = matcher.group();
|
||||||
|
|
@ -125,5 +126,6 @@ public final class ValidateSymbolsRule<R> implements IValidationRule<ImdgValidat
|
||||||
allowedSymbolsHash.set(hash);
|
allowedSymbolsHash.set(hash);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue