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

Commit

Permalink
fix(challenges): allow user to comment out undesired code
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrienAllemon authored and scissorsneedfoodtoo committed Aug 30, 2018
1 parent c50cc4e commit 72c2407
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6787,7 +6787,7 @@
"text":
"You should not use <code>case</code>, <code>switch</code>, or <code>if</code> statements",
"testString":
"assert(!/case|switch|if/g.test(code), 'You should not use <code>case</code>, <code>switch</code>, or <code>if</code> statements'); "
"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'); "
}
],
"challengeType": 1,
Expand Down

0 comments on commit 72c2407

Please sign in to comment.