From 1badd3c3a65c4dc3df970b774211b05c831a25ae Mon Sep 17 00:00:00 2001 From: Marc Antoni Date: Sun, 1 Nov 2020 22:24:35 +0900 Subject: [PATCH] fix(learn): add test case to regex challenge (#40087) existing test cases can be satisfied by /^[a-z][a-z]+$|^[a-z][a-z]*\d\d+$/i --- .../regular-expressions/restrict-possible-usernames.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/restrict-possible-usernames.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/restrict-possible-usernames.md index 886d6ab5e3..c8fd33610f 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/restrict-possible-usernames.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/restrict-possible-usernames.md @@ -47,6 +47,8 @@ tests: testString: assert(userCheck.test("Z97")); - text: Your regex should not match c57bT3 testString: assert(!userCheck.test("c57bT3")); + - text: Your regex should match AB1 + testString: assert(userCheck.test("AB1")); ```