You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (ast.getNumberOfNodes() > TRegexOptions.TRegexMaxParseTreeSizeForDFA) {
290
-
sb.add(String.format("Parser tree has too many nodes: %d (threshold: %d)", ast.getNumberOfNodes(), TRegexOptions.TRegexMaxParseTreeSizeForDFA));
291
-
}
292
-
if (ast.getNumberOfCaptureGroups() > TRegexOptions.TRegexMaxNumberOfCaptureGroupsForDFA) {
293
-
sb.add(String.format("regex has too many capture groups: %d (threshold: %d)", ast.getNumberOfCaptureGroups(), TRegexOptions.TRegexMaxNumberOfCaptureGroupsForDFA));
294
-
}
295
-
if (ast.getRoot().hasBackReferences()) {
296
-
sb.add("regex has back-references");
297
-
}
298
-
if (p.hasLargeCountedRepetitions()) {
299
-
sb.add(String.format("regex has large counted repetitions (threshold: %d for single CC, %d for groups)",
if (getNumberOfNodes() > TRegexOptions.TRegexMaxParseTreeSizeForDFA) {
637
+
sb.add(String.format("Parser tree has too many nodes: %d (threshold: %d)", getNumberOfNodes(), TRegexOptions.TRegexMaxParseTreeSizeForDFA));
638
+
}
639
+
if (getNumberOfCaptureGroups() > TRegexOptions.TRegexMaxNumberOfCaptureGroupsForDFA) {
640
+
sb.add(String.format("regex has too many capture groups: %d (threshold: %d)", getNumberOfCaptureGroups(), TRegexOptions.TRegexMaxNumberOfCaptureGroupsForDFA));
641
+
}
642
+
if (getRoot().hasBackReferences()) {
643
+
sb.add("regex has back-references");
644
+
}
645
+
if (getProperties().hasLargeCountedRepetitions()) {
646
+
sb.add(String.format("regex has large counted repetitions (threshold: %d for single CC, %d for groups)",
0 commit comments