We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7a90b4 commit 4d1f783Copy full SHA for 4d1f783
javascript/ql/src/Security/CWE-020/HostnameRegexpShared.qll
@@ -18,6 +18,7 @@ predicate isDotConstant(RegExpTerm term) {
18
or
19
exists(RegExpCharacterClass cls |
20
term = cls and
21
+ not cls.isInverted() and
22
cls.getNumChild() = 1 and
23
cls.getAChild().(RegExpConstant).getValue() = "."
24
)
0 commit comments