diff --git a/challenges/02-javascript-algorithms-and-data-structures/regular-expressions.json b/challenges/02-javascript-algorithms-and-data-structures/regular-expressions.json index 963d546f7e..0e7cd7146e 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/regular-expressions.json +++ b/challenges/02-javascript-algorithms-and-data-structures/regular-expressions.json @@ -920,8 +920,11 @@ "tests": [ "assert(reRegex.source.match(/\\\\d/), 'message: Your regex should use the shorthand character class for digits.');", "assert(reRegex.source.match(/\\\\\\d/g).length === 2, 'message: Your regex should reuse the capture group twice.');", + "assert(reRegex.source.match(/\\\\s/g).length === 2, 'message: Your regex should have two spaces separating the three numbers.');", "assert(reRegex.test(\"42 42 42\"), 'message: Your regex should match \"42 42 42\".');", "assert(reRegex.test(\"100 100 100\"), 'message: Your regex should match \"100 100 100\".');", + "assert.equal((\"42 42 42 42\").match(reRegex.source)[0], (\"42 42 42\"), 'message: Your regex should not match \"42 42 42 42\".');", + "assert.equal((\"42 42\").match(reRegex.source), null, 'message: Your regex should not match \"42 42\".');", "assert(!reRegex.test(\"101 102 103\"), 'message: Your regex should not match \"101 102 103\".');", "assert(!reRegex.test(\"1 2 3\"), 'message: Your regex should not match \"1 2 3\".');", "assert(reRegex.test(\"10 10 10\"), 'message: Your regex should match \"10 10 10\".');" @@ -992,4 +995,4 @@ "translations": {} } ] -} \ No newline at end of file +}