Skip to content

Commit

Permalink
Merge pull request #11026 from newyork-anthonyng/fix/test-for-sift-regex
Browse files Browse the repository at this point in the history
Update test for regex challenge
  • Loading branch information
dhcodes committed Oct 3, 2016
2 parents 9281013 + 24a1470 commit a2c9ae7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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,
Expand Down

0 comments on commit a2c9ae7

Please sign in to comment.