From 98bb2c1085400239d0acb5d76a79c1ba144133f1 Mon Sep 17 00:00:00 2001
From: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
Date: Mon, 25 Nov 2019 17:25:24 -0800
Subject: [PATCH] fix: added new test case to prevent invalid regex (#37769)
---
.../restrict-possible-usernames.english.md | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/restrict-possible-usernames.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/restrict-possible-usernames.english.md
index ff3b541dc8..1367c9d2b1 100644
--- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/restrict-possible-usernames.english.md
+++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/restrict-possible-usernames.english.md
@@ -44,7 +44,9 @@ tests:
- text: Your regex should not match BadUs3rnam3
testString: assert(!userCheck.test("BadUs3rnam3"));
- text: Your regex should match Z97
- testString: assert(userCheck.test("Z97"));
+ testString: assert(userCheck.test("Z97"));
+ - text: Your regex should not match c57bT3
+ testString: assert(!userCheck.test("c57bT3"));
```