fix(challenges): allow user to comment out undesired code
This commit is contained in:
committed by
Kristofer Koishigawa
parent
c50cc4eb1d
commit
72c2407190
@ -6787,7 +6787,7 @@
|
|||||||
"text":
|
"text":
|
||||||
"You should not use <code>case</code>, <code>switch</code>, or <code>if</code> statements",
|
"You should not use <code>case</code>, <code>switch</code>, or <code>if</code> statements",
|
||||||
"testString":
|
"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,
|
"challengeType": 1,
|
||||||
|
Reference in New Issue
Block a user