From 38879d82f19693f920e429ecc8d5ac178b20210b Mon Sep 17 00:00:00 2001 From: Thomas Lombart Date: Sat, 23 Jun 2018 17:06:09 +0200 Subject: [PATCH] fix(challenges): Correct a regex in ES6 read-only challenge 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",