mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-22 21:08:12 +08:00
fix: modified tests for step 10 of building a spam filter (#54364)
Co-authored-by: Naomi <nhcarrigan@gmail.com>
This commit is contained in:
parent
8ffd180b4c
commit
4541f41b8b
@ -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--
|
||||
|
||||
Loading…
Reference in New Issue
Block a user