Skip to content
This repository was archived by the owner on Sep 25, 2019. It is now read-only.

Commit 72c2407

Browse files
HadrienAllemonscissorsneedfoodtoo
authored andcommitted
fix(challenges): allow user to comment out undesired code
1 parent c50cc4e commit 72c2407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6787,7 +6787,7 @@
67876787
"text":
67886788
"You should not use <code>case</code>, <code>switch</code>, or <code>if</code> statements",
67896789
"testString":
6790-
"assert(!/case|switch|if/g.test(code), 'You should not use <code>case</code>, <code>switch</code>, or <code>if</code> statements'); "
6790+
"assert(!/case|switch|if/g.test(code.replace(/([/]{2}.*)|([/][*][^/*]*[*][/])/g,'')), 'You should not use <code>case</code>, <code>switch</code>, or <code>if</code> statements'); "
67916791
}
67926792
],
67936793
"challengeType": 1,

0 commit comments

Comments
 (0)