We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf53956 commit 25e4f2cCopy full SHA for 25e4f2c
shared/regex/codeql/regex/nfa/NfaUtils.qll
@@ -862,9 +862,12 @@ module Make<RegexTreeViewSig TreeImpl> {
862
RegExpTerm repr;
863
864
State() {
865
- this = Match(repr, _) or
866
- this = Accept(repr) or
867
- this = AcceptAnySuffix(repr)
+ (
+ this = Match(repr, _) or
+ this = Accept(repr) or
868
+ this = AcceptAnySuffix(repr)
869
+ ) and
870
+ repr instanceof RelevantRegExpTerm
871
}
872
873
/**
@@ -1457,7 +1460,8 @@ module Make<RegexTreeViewSig TreeImpl> {
1457
1460
result = getChar(ancestor) and
1458
1461
ancestor = getAnAncestor(n) and
1459
1462
i = nodeDepth(ancestor)
- )
1463
1464
+ nodeDepth(n) < 100
1465
1466
1467
/** Gets a string corresponding to `node`. */
0 commit comments