Skip to content

Commit ab28b0a

Browse files
authored
Merge pull request github#9348 from erik-krogh/polyRegSyntax
JS: use syntactically correct JS in poly-redos example
2 parents c7a8008 + fef87db commit ab28b0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/Performance/PolynomialReDoS.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
</p>
7272

7373
<sample language="javascript">
74-
^0\.\d+E?\d+$ // BAD
74+
/^0\.\d+E?\d+$/.test(str) // BAD
7575
</sample>
7676

7777
<p>

0 commit comments

Comments
 (0)