Fixed problem with regex in es6 import challenge (#19718)
import-a-default-export.english.md: support both main quoting stylespull/29904/head^2
parent
7e69c85e16
commit
90a9df1a5d
|
@ -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>.');
|
||||
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue