Skip to content

Commit f6c9318

Browse files
fix: allow optional parentheses in arrow function parameters for step 19 (freeCodeCamp#64714)
Co-authored-by: majestic-owl448 <[email protected]>
1 parent 8034515 commit f6c9318

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

curriculum/challenges/english/blocks/workshop-fruit-search-app/6813f4dc94d4a31c5702f594.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You should update `setResults` with `data.map(fruit => fruit.name)`.
1616
```js
1717
assert.match(
1818
code,
19-
/setResults\s*\(\s*data\.map\(\s*\w+\s*=>\s*\w+\.name\s*\)\s*\)/s
19+
/setResults\s*\(\s*data\.map\(\s*(?:\(\w+\)|\w+)\s*=>\s*\w+\.name\s*\)\s*\)/s
2020
);
2121
```
2222

0 commit comments

Comments
 (0)