fix: removed semi-colon from regex (#37881)

This commit is contained in:
Randell Dawson
2019-12-07 12:02:42 -08:00
committed by Manish Giri
parent ccbc9cc6b6
commit 623c08cbfa

View File

@ -54,7 +54,7 @@ tests:
- text: Your code should not rely on any kind of loops (<code>for</code>, <code>while</code> or higher order functions such as <code>forEach</code>, <code>map</code>, <code>filter</code>, and <code>reduce</code>).
testString: assert(!removeJSComments(code).match(/for|while|forEach|map|filter|reduce/g));
- text: You should use recursion to solve this problem.
testString: assert(removeJSComments(countdown.toString()).match(/countdown\s*\(.+\)\;/));
testString: assert(removeJSComments(countdown.toString()).match(/countdown\s*\(.+\)/));
```
</section>