From f4d598f060fe4ed157a508728a7accd1bb9d2f6c Mon Sep 17 00:00:00 2001 From: Pushpender Maan Date: Thu, 5 Jul 2018 20:15:11 +0530 Subject: [PATCH] fix(challenges): fix regex (es6 : import vs require) ISSUES CLOSED: #108 --- .../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 380cb3ebb..db52c8bf2 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\"/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",