fix(challenges): fix regex to allow redundant space characters
This commit is contained in:
committed by
Kristofer Koishigawa
parent
f1474303e6
commit
8b99b8b56f
@ -1301,7 +1301,7 @@
|
|||||||
{
|
{
|
||||||
"text": "valid <code>import</code> statement",
|
"text": "valid <code>import</code> statement",
|
||||||
"testString":
|
"testString":
|
||||||
"getUserInput => assert(getUserInput('index').match(/import\\s+\\{\\s?capitalizeString\\s?\\}\\s+from\\s+(\"|')string_functions\\1/g), 'valid <code>import</code> statement');"
|
"getUserInput => assert(getUserInput('index').match(/import\\s+\\{\\s*capitalizeString\\s*\\}\\s+from\\s+(\"|')string_functions\\1/g), 'valid <code>import</code> statement');"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"releasedOn": "Feb 17, 2017",
|
"releasedOn": "Feb 17, 2017",
|
||||||
|
Reference in New Issue
Block a user