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:
Yash 2025-12-18 02:05:26 +05:30 committed by GitHub
parent 8034515276
commit f6c931820c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
);
```