mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
Merge pull request #9348 from erik-krogh/polyRegSyntax
JS: use syntactically correct JS in poly-redos example
This commit is contained in:
@@ -71,7 +71,7 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<sample language="javascript">
|
<sample language="javascript">
|
||||||
^0\.\d+E?\d+$ // BAD
|
/^0\.\d+E?\d+$/.test(str) // BAD
|
||||||
</sample>
|
</sample>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
Reference in New Issue
Block a user