From c15c27f474a31378687004f5c8b506cf0cb03321 Mon Sep 17 00:00:00 2001 From: Joshua Pelealu <45566099+JoshuaPelealu@users.noreply.github.com> Date: Wed, 17 Feb 2021 10:46:07 -0500 Subject: [PATCH] fix(learn): Added another test to check for invalid characters (#41144) --- .../regular-expressions/restrict-possible-usernames.md | 6 ++++++ 1 file changed, 6 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 59da9fb360..cb9b99b8da 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 @@ -98,6 +98,12 @@ Your regex should match `AB1` assert(userCheck.test('AB1')); ``` +Your regex should not match `J%4` + +```js +assert(!userCheck.test('J%4')) +``` + # --seed-- ## --seed-contents--