From 24a147001e7ffc85aeea995491ba847d6c9443a8 Mon Sep 17 00:00:00 2001 From: Anthony Ng Date: Sun, 2 Oct 2016 18:19:06 -0400 Subject: [PATCH] Update test for regex challenge Add more lenient tests for the "Sift through Text with Regular Expressions" challenge. --- .../basic-javascript.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/01-front-end-development-certification/basic-javascript.json b/seed/challenges/01-front-end-development-certification/basic-javascript.json index 6a87ec1e823..34eed53341c 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -5624,7 +5624,7 @@ ], "tests": [ "assert(andCount==2, 'message: Your regular expression should find two occurrences of the word and.');", - "assert(code.match(/\\/and\\/gi/), 'message: Use regular expressions to find the word and in testString.');" + "assert(code.match(/\\/and\\/gi/) || code.match(/\\/\\\\band\\\\b\\/gi/) || code.match(/\\/\\(\\?\\:\\\\b\\)and\\(\\?\\:\\\\b\\)\\/gi/), 'message: Use regular expressions to find the word and in testString.');" ], "type": "waypoint", "challengeType": 1,