Skip to content

Commit 5e8b1b0

Browse files
Napalyserik-krogh
andauthored
Update javascript/ql/src/Security/CWE-020/MissingRegExpAnchor.ql
Co-authored-by: Erik Krogh Kristensen <[email protected]>
1 parent 7825a46 commit 5e8b1b0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

javascript/ql/src/Security/CWE-020/MissingRegExpAnchor.ql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ private module Impl implements
3535
|
3636
name = "replace"
3737
or
38-
name = "match" and exists(mcn.getAPropertyRead())
39-
or
40-
name = "matchAll" and exists(mcn.getAPropertyRead())
38+
name = ["match", "matchAll"] and exists(mcn.getAPropertyRead())
4139
)
4240
)
4341
}

0 commit comments

Comments
 (0)