Skip to content
This repository was archived by the owner on Sep 25, 2019. It is now read-only.

Commit cf9336a

Browse files
thomaslombartBouncey
authored andcommitted
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.
1 parent 816be51 commit cf9336a

File tree

1 file changed

+1
-1
lines changed
  • challenges/02-javascript-algorithms-and-data-structures

1 file changed

+1
-1
lines changed

challenges/02-javascript-algorithms-and-data-structures/es6.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
"text":
161161
"<code>console.log</code> should be changed to print the <code>SENTENCE</code> variable.",
162162
"testString":
163-
"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>.');"
163+
"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>.');"
164164
}
165165
],
166166
"releasedOn": "Feb 17, 2017",

0 commit comments

Comments
 (0)