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

Commit

Permalink
fix(challenges): add test to lookahead regex challenge
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #209
  • Loading branch information
joshalling authored and scissorsneedfoodtoo committed Aug 17, 2018
1 parent 31957a4 commit e044de4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1517,6 +1517,10 @@
"text": "Your regex should not match <code>\"airplanes\"</code>",
"testString": "assert(!pwRegex.test(\"airplanes\"), 'Your regex should not match <code>\"airplanes\"</code>');"
},
{
"text": "Your regex should not match <code>\"banan1\"</code>",
"testString": "assert(!pwRegex.test(\"banan1\"), 'Your regex should not match <code>\"banan1\"</code>');"
},
{
"text": "Your regex should match <code>\"bana12\"</code>",
"testString": "assert(pwRegex.test(\"bana12\"), 'Your regex should match <code>\"bana12\"</code>');"
Expand All @@ -1534,7 +1538,7 @@
"testString": "assert(!pwRegex.test(\"1234\"), 'Your regex should not match <code>\"1234\"</code>');"
}
],
"solutions": [],
"solutions": ["var pwRegex = /(?=\\w{5})(?=\\D*\\d{2})/;"],
"hints": [],
"releasedOn": "Feb 17, 2017",
"challengeType": 1,
Expand Down

0 comments on commit e044de4

Please sign in to comment.