From e044de423082fd007be6a43f44106b6cfcc14679 Mon Sep 17 00:00:00 2001 From: Josh Alling Date: Thu, 2 Aug 2018 13:42:52 -0600 Subject: [PATCH] fix(challenges): add test to lookahead regex challenge ISSUES CLOSED: #209 --- .../regular-expressions.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/challenges/02-javascript-algorithms-and-data-structures/regular-expressions.json b/challenges/02-javascript-algorithms-and-data-structures/regular-expressions.json index 5b681ec43..5384eb769 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/regular-expressions.json +++ b/challenges/02-javascript-algorithms-and-data-structures/regular-expressions.json @@ -1517,6 +1517,10 @@ "text": "Your regex should not match \"airplanes\"", "testString": "assert(!pwRegex.test(\"airplanes\"), 'Your regex should not match \"airplanes\"');" }, + { + "text": "Your regex should not match \"banan1\"", + "testString": "assert(!pwRegex.test(\"banan1\"), 'Your regex should not match \"banan1\"');" + }, { "text": "Your regex should match \"bana12\"", "testString": "assert(pwRegex.test(\"bana12\"), 'Your regex should match \"bana12\"');" @@ -1534,7 +1538,7 @@ "testString": "assert(!pwRegex.test(\"1234\"), 'Your regex should not match \"1234\"');" } ], - "solutions": [], + "solutions": ["var pwRegex = /(?=\\w{5})(?=\\D*\\d{2})/;"], "hints": [], "releasedOn": "Feb 17, 2017", "challengeType": 1,