mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
Ruby: Add another regex consistency test
This commit is contained in:
@@ -6,3 +6,9 @@ query predicate nonUniqueChild(RegExpParent parent, int i, RegExpTerm child) {
|
||||
}
|
||||
|
||||
query predicate cyclic(RegExpParent parent) { parent = parent.getAChild+() }
|
||||
|
||||
query predicate nonConsecutive(RegExpParent parent, int i) {
|
||||
exists(parent.getChild(i)) and
|
||||
i > 0 and
|
||||
not exists(parent.getChild(i - 1))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user