refactor: улучшение качества кода
This commit is contained in:
@@ -31,6 +31,11 @@ import java.util.regex.Pattern;
|
||||
public record Rule(String type, Pattern pattern, int priority, List<Integer> groups,
|
||||
Predicate<String> validator, Pattern veto, Pattern context, List<String> anchors) {
|
||||
|
||||
public Rule {
|
||||
groups = List.copyOf(groups);
|
||||
anchors = List.copyOf(anchors);
|
||||
}
|
||||
|
||||
/**
|
||||
* Флаги компиляции для всех правил.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user