Skip to content

Commit bcecd22

Browse files
authored
fix(curriculum): accept both arrow and regular empty function (freeCodeCamp#57087)
1 parent 8c040a9 commit bcecd22

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ assert.match(code, /checkMessageButton\.addEventListener\(\s*('|"|`)click\1\s*,/
2626
Your `.addEventListener()` method should have an empty callback function.
2727

2828
```js
29-
assert.match(code, /checkMessageButton\.addEventListener\(\s*('|"|`)click\1\s*,\s*\(\s*\)\s*=>\s*\{\s*\}\s*\)/);
29+
assert.match(code, /checkMessageButton\.addEventListener\(\s*('|"|`)click\1\s*,\s*(\(\s*\)\s*=>\s*\{\s*\}|function\s*\(\s*\)\s*\{\s*\})\s*\)/);
3030
```
3131

3232
# --seed--

0 commit comments

Comments
 (0)