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

Commit e044de4

Browse files
joshallingscissorsneedfoodtoo
authored andcommitted
fix(challenges): add test to lookahead regex challenge
ISSUES CLOSED: #209
1 parent 31957a4 commit e044de4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

challenges/02-javascript-algorithms-and-data-structures/regular-expressions.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1517,6 +1517,10 @@
15171517
"text": "Your regex should not match <code>\"airplanes\"</code>",
15181518
"testString": "assert(!pwRegex.test(\"airplanes\"), 'Your regex should not match <code>\"airplanes\"</code>');"
15191519
},
1520+
{
1521+
"text": "Your regex should not match <code>\"banan1\"</code>",
1522+
"testString": "assert(!pwRegex.test(\"banan1\"), 'Your regex should not match <code>\"banan1\"</code>');"
1523+
},
15201524
{
15211525
"text": "Your regex should match <code>\"bana12\"</code>",
15221526
"testString": "assert(pwRegex.test(\"bana12\"), 'Your regex should match <code>\"bana12\"</code>');"
@@ -1534,7 +1538,7 @@
15341538
"testString": "assert(!pwRegex.test(\"1234\"), 'Your regex should not match <code>\"1234\"</code>');"
15351539
}
15361540
],
1537-
"solutions": [],
1541+
"solutions": ["var pwRegex = /(?=\\w{5})(?=\\D*\\d{2})/;"],
15381542
"hints": [],
15391543
"releasedOn": "Feb 17, 2017",
15401544
"challengeType": 1,

0 commit comments

Comments
 (0)