mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 10:07:46 -05:00
fix: allow optional parentheses in arrow function parameters for step 19 (#64714)
Co-authored-by: majestic-owl448 <26656284+majestic-owl448@users.noreply.github.com>
This commit is contained in:
@@ -16,7 +16,7 @@ You should update `setResults` with `data.map(fruit => fruit.name)`.
|
||||
```js
|
||||
assert.match(
|
||||
code,
|
||||
/setResults\s*\(\s*data\.map\(\s*\w+\s*=>\s*\w+\.name\s*\)\s*\)/s
|
||||
/setResults\s*\(\s*data\.map\(\s*(?:\(\w+\)|\w+)\s*=>\s*\w+\.name\s*\)\s*\)/s
|
||||
);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user