use syntactically correct JS in poly-redos example

This commit is contained in:
Erik Krogh Kristensen
2022-05-27 10:08:30 +02:00
parent 57b9e6ee40
commit fef87db739

View File

@@ -71,7 +71,7 @@
</p>
<sample language="javascript">
^0\.\d+E?\d+$ // BAD
/^0\.\d+E?\d+$/.test(str) // BAD
</sample>
<p>