Skip to content

Commit 4a27928

Browse files
committed
Ruby/JS add missing ^ in qhelp
1 parent 431b605 commit 4a27928

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

javascript/ql/src/Security/CWE-020/IncompleteHostnameRegExp.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<p>
6060

6161
Address this vulnerability by escaping <code>.</code>
62-
appropriately: <code>let regex = /((www|beta)\.)?example\.com/</code>.
62+
appropriately: <code>let regex = /^((www|beta)\.)?example\.com/</code>.
6363

6464
</p>
6565

ruby/ql/src/queries/security/cwe-020/IncompleteHostnameRegExp.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<p>
6060

6161
Address this vulnerability by escaping <code>.</code>
62-
appropriately: <code>regex = /((www|beta)\.)?example\.com/</code>.
62+
appropriately: <code>regex = /^((www|beta)\.)?example\.com/</code>.
6363

6464
</p>
6565

0 commit comments

Comments
 (0)