Merge pull request #11026 from newyork-anthonyng/fix/test-for-sift-regex

Update test for regex challenge
This commit is contained in:
Dylan
2016-10-03 14:54:29 -05:00
committed by GitHub

View File

@ -5624,7 +5624,7 @@
],
"tests": [
"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",
"challengeType": 1,