Skip to content

Commit

Permalink
fix(challenges): fixed RegEx for Template Literals JavaScript challenge
Browse files Browse the repository at this point in the history
ISSUES CLOSED: freeCodeCamp#65
  • Loading branch information
gforce2k5 committed Jun 27, 2018
1 parent 7950a01 commit b54a79e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@
{
"text": "Template strings were used",
"testString":
"getUserInput => assert(getUserInput('index').match(/\\`<li \\s*class\\s*=\\s*(\"\\s*text-warning\\s*\"|\\'\\s*text-warning\\s*\\')\\s*>\\s*\\$\\s*\\{(\\s*\\w+\\s*|\\s*\\w+\\s*\\[\\s*[\\w]+\\s*\\]\\s*)\\}\\s*<\\s*/li\\s*>\\`/g), 'Template strings were used');"
"getUserInput => assert(getUserInput('index').match(/\\`<li \\s*class\\s*=\\s*(\"\\s*text-warning\\s*\"|\\'\\s*text-warning\\s*\\')\\s*>\\s*\\$\\s*\\{(\\s*\\w+\\s*|\\s*\\w+\\s*\\[\\s*[\\w]+\\s*\\]\\s*)\\}\\s*<\\s*\\/li\\s*>\\`/g), 'Template strings were not used properly');"
}
],
"releasedOn": "Feb 17, 2017",
Expand Down

0 comments on commit b54a79e

Please sign in to comment.