From 90a9df1a5d1f9ac841d7c152f83da0945765b2a1 Mon Sep 17 00:00:00 2001 From: The Coding Aviator <34807532+thecodingaviator@users.noreply.github.com> Date: Sun, 3 Feb 2019 22:37:55 +0530 Subject: [PATCH] Fixed problem with regex in es6 import challenge (#19718) import-a-default-export.english.md: support both main quoting styles --- .../es6/import-a-default-export.english.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/import-a-default-export.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/import-a-default-export.english.md index 3fe712a782..b94cee0c02 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/import-a-default-export.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/import-a-default-export.english.md @@ -22,8 +22,8 @@ In the following code, please import the default export, subtract, ```yml tests: - - text: Properly imports export default method. - testString: getUserInput => assert(getUserInput('index').match(/import\s+subtract\s+from\s+"math_functions"/g), 'Properly imports export default method.'); + - text: You need to properly import subtract from "math_functions". + testString: getUserInput => assert(getUserInput('index').match(/import\s+subtract\s+from\s+('|")math_functions\1/g), 'You need to properly import subtract from "math_functions".'); ```