fix(challenges): Correct a regex in ES6 read-only challenge (#41)
The regex testing if the user has entered console.log(SENTENCE); was broken. It has been modified.
This commit is contained in:
committed by
Stuart Taylor
parent
816be51471
commit
cf9336a3b1
@ -160,7 +160,7 @@
|
|||||||
"text":
|
"text":
|
||||||
"<code>console.log</code> should be changed to print the <code>SENTENCE</code> variable.",
|
"<code>console.log</code> should be changed to print the <code>SENTENCE</code> variable.",
|
||||||
"testString":
|
"testString":
|
||||||
"getUserInput => assert(getUserInput('index').match(/console.log/(/s*?SENTENCE/s*?/)/s*?;/g), '<code>console.log</code> should be adjusted to print the variable <code>SENTENCE</code>.');"
|
"getUserInput => assert(getUserInput('index').match(/console\\.log\\(\\s*SENTENCE\\s*\\)\\s*;?/g), '<code>console.log</code> should be adjusted to print the variable <code>SENTENCE</code>.');"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"releasedOn": "Feb 17, 2017",
|
"releasedOn": "Feb 17, 2017",
|
||||||
|
Reference in New Issue
Block a user