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

Commit

Permalink
fix(challenges): update RegEx for testcase in es6 challenge
Browse files Browse the repository at this point in the history
anku255 authored and scissorsneedfoodtoo committed Jul 1, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 12c78d4 commit 857b3e9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1341,12 +1341,12 @@
{
"text": "<code>foo</code> is exported.",
"testString":
"getUserInput => assert(getUserInput('index').match(/export\\s+const\\s+foo\\s+=+\\s\"bar\"/g), '<code>foo</code> is exported.');"
"getUserInput => assert(getUserInput('index').match(/export\\s+const\\s+foo\\s*=\\s*\"bar\"/g), '<code>foo</code> is exported.');"
},
{
"text": "<code>bar</code> is exported.",
"testString":
"getUserInput => assert(getUserInput('index').match(/export\\s+const\\s+bar\\s+=+\\s\"foo\"/g), '<code>bar</code> is exported.');"
"getUserInput => assert(getUserInput('index').match(/export\\s+const\\s+bar\\s*=\\s*\"foo\"/g), '<code>bar</code> is exported.');"
}
],
"releasedOn": "Feb 17, 2017",
@@ -1360,7 +1360,7 @@
"contents": [
"\"use strict\";",
"const foo = \"bar\";",
"const bar= \"foo\";"
"const bar = \"foo\";"
],
"head": ["window.exports = function(){};"],
"tail": []

0 comments on commit 857b3e9

Please sign in to comment.