Skip to content

Commit 9a95b9b

Browse files
committed
Swift: Enable the isLineAnchoredHostnameRegExp case (not working).
1 parent c09df2e commit 9a95b9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

swift/ql/src/queries/Security/CWE-020/MissingRegexAnchor.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@ where
4040
isSemiAnchoredHostnameRegExp(node, msg)
4141
or
4242
hasMisleadingAnchorPrecedence(node, msg)
43-
// isLineAnchoredHostnameRegExp is not used here, as it is not relevant to JS.
43+
or
44+
isLineAnchoredHostnameRegExp(node, msg)
4445
select node, msg

0 commit comments

Comments
 (0)