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.
pull/18182/head
Thomas Lombart 2018-06-24 04:13:48 +02:00 committed by Stuart Taylor
parent 816be51471
commit cf9336a3b1
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@
"text":
"<code>console.log</code> should be changed to print the <code>SENTENCE</code> variable.",
"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",