Skip to content

Commit fef87db

Browse files
committed
use syntactically correct JS in poly-redos example
1 parent 57b9e6e commit fef87db

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)