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 5b681ec436..5384eb7696 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,