From 8b99b8b56fb69012c88ba951ea8e92a102f17149 Mon Sep 17 00:00:00 2001 From: Pushpender Maan Date: Mon, 9 Jul 2018 22:43:47 +0530 Subject: [PATCH] fix(challenges): fix regex to allow redundant space characters --- .../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 db52c8bf2..4f92d7361 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/es6.json +++ b/challenges/02-javascript-algorithms-and-data-structures/es6.json @@ -1301,7 +1301,7 @@ { "text": "valid import statement", "testString": - "getUserInput => assert(getUserInput('index').match(/import\\s+\\{\\s?capitalizeString\\s?\\}\\s+from\\s+(\"|')string_functions\\1/g), 'valid import statement');" + "getUserInput => assert(getUserInput('index').match(/import\\s+\\{\\s*capitalizeString\\s*\\}\\s+from\\s+(\"|')string_functions\\1/g), 'valid import statement');" } ], "releasedOn": "Feb 17, 2017",