From cf9336a3b1738b025277a15ee0aabb14a365ada1 Mon Sep 17 00:00:00 2001 From: Thomas Lombart Date: Sun, 24 Jun 2018 04:13:48 +0200 Subject: [PATCH] fix(challenges): Correct a regex in ES6 read-only challenge (#41) The regex testing if the user has entered console.log(SENTENCE); was broken. It has been modified. --- .../02-javascript-algorithms-and-data-structures/es6.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/02-javascript-algorithms-and-data-structures/es6.json b/challenges/02-javascript-algorithms-and-data-structures/es6.json index 8561431b3..3d6243a69 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/es6.json +++ b/challenges/02-javascript-algorithms-and-data-structures/es6.json @@ -160,7 +160,7 @@ "text": "console.log should be changed to print the SENTENCE variable.", "testString": - "getUserInput => assert(getUserInput('index').match(/console.log/(/s*?SENTENCE/s*?/)/s*?;/g), 'console.log should be adjusted to print the variable SENTENCE.');" + "getUserInput => assert(getUserInput('index').match(/console\\.log\\(\\s*SENTENCE\\s*\\)\\s*;?/g), 'console.log should be adjusted to print the variable SENTENCE.');" } ], "releasedOn": "Feb 17, 2017",