From 857b3e9a88a49d87a5ec8b2f65ff28c874fb0182 Mon Sep 17 00:00:00 2001 From: Ankit Tiwari Date: Sat, 30 Jun 2018 23:26:59 +0530 Subject: [PATCH] fix(challenges): update RegEx for testcase in es6 challenge --- .../02-javascript-algorithms-and-data-structures/es6.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/challenges/02-javascript-algorithms-and-data-structures/es6.json b/challenges/02-javascript-algorithms-and-data-structures/es6.json index 4be89011bc..380cb3ebb1 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/es6.json +++ b/challenges/02-javascript-algorithms-and-data-structures/es6.json @@ -1341,12 +1341,12 @@ { "text": "foo is exported.", "testString": - "getUserInput => assert(getUserInput('index').match(/export\\s+const\\s+foo\\s+=+\\s\"bar\"/g), 'foo is exported.');" + "getUserInput => assert(getUserInput('index').match(/export\\s+const\\s+foo\\s*=\\s*\"bar\"/g), 'foo is exported.');" }, { "text": "bar is exported.", "testString": - "getUserInput => assert(getUserInput('index').match(/export\\s+const\\s+bar\\s+=+\\s\"foo\"/g), 'bar is exported.');" + "getUserInput => assert(getUserInput('index').match(/export\\s+const\\s+bar\\s*=\\s*\"foo\"/g), 'bar is exported.');" } ], "releasedOn": "Feb 17, 2017", @@ -1360,7 +1360,7 @@ "contents": [ "\"use strict\";", "const foo = \"bar\";", - "const bar= \"foo\";" + "const bar = \"foo\";" ], "head": ["window.exports = function(){};"], "tail": []