Fixed problem with regex in es6 import challenge (#19718)
import-a-default-export.english.md: support both main quoting styles
This commit is contained in:
committed by
Jaka Kranjc
parent
7e69c85e16
commit
90a9df1a5d
@ -22,8 +22,8 @@ In the following code, please import the default export, <code>subtract</code>,
|
|||||||
|
|
||||||
```yml
|
```yml
|
||||||
tests:
|
tests:
|
||||||
- text: 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"/g), 'Properly imports <code>export default</code> method.');
|
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>.');
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user