fix(curriculum): regex to handle whitespaces between spread operator and value (#50678)

This commit is contained in:
Abhishek Ranjan 2023-06-14 21:37:59 +05:30 committed by GitHub
parent f3385dda8e
commit 5331994dbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ assert.deepEqual(copyMachine(['it works'], 3), [
The `copyMachine` function should utilize the `spread operator` with array `arr`
```js
assert(code.match(/\.\.\.arr/));
assert(code.match(/\.\.\.\s*arr/));
```
# --seed--