fix QL match-string pattern

This commit is contained in:
Philip Ginsbach
2022-12-02 11:54:08 +00:00
parent fef03a0806
commit 5c53979210
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@
import cpp
predicate incomplete(Macro m) {
exists(string body | body = m.getBody() and not m.getBody().matches("%\\") |
exists(string body | body = m.getBody() and not m.getBody().matches("%\\\\") |
body.regexpMatch("[^(]*\\).*") or
body.regexpMatch("[^\\[]*].*") or
body.regexpMatch("[^{]*}.*") or

View File

@@ -12,7 +12,7 @@
import cpp
predicate incomplete(Macro m) {
exists(string body | body = m.getBody() and not m.getBody().matches("%\\") |
exists(string body | body = m.getBody() and not m.getBody().matches("%\\\\") |
body.regexpMatch("[^(]*\\).*") or
body.regexpMatch("[^\\[]*].*") or
body.regexpMatch("[^{]*}.*") or