From 4541f41b8b64b7c9ec8f381f277779e66dc77f67 Mon Sep 17 00:00:00 2001 From: "Jenna (Ju Hee) Han" <62906996+jenna5376@users.noreply.github.com> Date: Mon, 15 Apr 2024 13:32:09 -0400 Subject: [PATCH] fix: modified tests for step 10 of building a spam filter (#54364) Co-authored-by: Naomi --- .../641cf198ec366c33d6504854.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-regular-expressions-by-building-a-spam-filter/641cf198ec366c33d6504854.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-regular-expressions-by-building-a-spam-filter/641cf198ec366c33d6504854.md index db22a7b6b2f..fa46e655235 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-regular-expressions-by-building-a-spam-filter/641cf198ec366c33d6504854.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-regular-expressions-by-building-a-spam-filter/641cf198ec366c33d6504854.md @@ -23,12 +23,16 @@ Your `helpRegex` should match the string `please help`. ```js assert.match('please help', helpRegex); +const splitRegex = helpRegex.toString().split(/[\/|]/); +assert.include(splitRegex, 'please help'); ``` Your `helpRegex` should match the string `assist me`. ```js assert.match('assist me', helpRegex); +const splitRegex = helpRegex.toString().split(/[\/|]/); +assert.include(splitRegex, 'assist me'); ``` # --seed--