Skip to content

Commit 18d3142

Browse files
authored
fix(curriculum): better regex test for Spam Filter Step 24 (freeCodeCamp#56603)
1 parent 92cd74c commit 18d3142

File tree

1 file changed

+2
-2
lines changed
  • curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-regular-expressions-by-building-a-spam-filter

1 file changed

+2
-2
lines changed

curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-regular-expressions-by-building-a-spam-filter/64233094a1293c079b5b0996.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ assert.lengthOf(freeRegex.source.match(/\[(e3|3e)\]/g), 3);
3434
Your `freeRegex` should match `free money`.
3535

3636
```js
37-
assert.match('free money', freeRegex);
37+
assert.equal("free money".match(freeRegex)?.[0], "free money");
3838
```
3939
4040
Your `freeRegex` should match `fr33 mon3y`.
4141
4242
```js
43-
assert.match('fr33 mon3y', freeRegex);
43+
assert.equal("fr33 mon3y".match(freeRegex)?.[0], "fr33 mon3y");
4444
```
4545
4646
# --seed--

0 commit comments

Comments
 (0)