Fixed problem with regex in es6 import challenge (#19718)

import-a-default-export.english.md: support both main quoting styles
pull/29904/head^2
The Coding Aviator 2019-02-03 22:37:55 +05:30 committed by Jaka Kranjc
parent 7e69c85e16
commit 90a9df1a5d
1 changed files with 2 additions and 2 deletions

View File

@ -22,8 +22,8 @@ In the following code, please import the default export, <code>subtract</code>,
```yml
tests:
- text: Properly imports <code>export default</code> method.
testString: getUserInput => assert(getUserInput('index').match(/import\s+subtract\s+from\s+"math_functions"/g), 'Properly imports <code>export default</code> method.');
- text: You need to properly import <code>subtract</code> from <code>"math_functions"</code>.
testString: getUserInput => assert(getUserInput('index').match(/import\s+subtract\s+from\s+('|")math_functions\1/g), 'You need to properly import <code>subtract</code> from <code>"math_functions"</code>.');
```