Merge pull request #11026 from newyork-anthonyng/fix/test-for-sift-regex
Update test for regex challenge
This commit is contained in:
@ -5624,7 +5624,7 @@
|
|||||||
],
|
],
|
||||||
"tests": [
|
"tests": [
|
||||||
"assert(andCount==2, 'message: Your <code>regular expression</code> should find two occurrences of the word <code>and</code>.');",
|
"assert(andCount==2, 'message: Your <code>regular expression</code> should find two occurrences of the word <code>and</code>.');",
|
||||||
"assert(code.match(/\\/and\\/gi/), 'message: Use <code>regular expressions</code> to find the word <code>and</code> in <code>testString</code>.');"
|
"assert(code.match(/\\/and\\/gi/) || code.match(/\\/\\\\band\\\\b\\/gi/) || code.match(/\\/\\(\\?\\:\\\\b\\)and\\(\\?\\:\\\\b\\)\\/gi/), 'message: Use <code>regular expressions</code> to find the word <code>and</code> in <code>testString</code>.');"
|
||||||
],
|
],
|
||||||
"type": "waypoint",
|
"type": "waypoint",
|
||||||
"challengeType": 1,
|
"challengeType": 1,
|
||||||
|
Reference in New Issue
Block a user