Skip to content

Commit

Permalink
fix(challenges): Correct a regex in ES6 read-only challenge (freeCode…
Browse files Browse the repository at this point in the history
…Camp#41)

The regex testing if the user has entered console.log(SENTENCE); was broken. It has been modified.
  • Loading branch information
Thomas Lombart authored and Bouncey committed Jun 24, 2018
1 parent 816be51 commit cf9336a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit cf9336a

Please sign in to comment.