mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-22 21:08:12 +08:00
fix(curriculum): allow extra whitespace for regex in step 33 (#61673)
This commit is contained in:
parent
b84dc47ecb
commit
906a21b2ad
@ -15,7 +15,7 @@ Now, use the **OR** operator to add the `start` parameter as a second condition
|
||||
You should use the **OR** operator to add the `start` parameter as a second condition to the `if` statement after `userData.currentSong === null`.
|
||||
|
||||
```js
|
||||
assert.match(__helpers.removeJSComments(code), /if\s+\(\s*userData\s*\.\s*currentSong\s*===\s*null\s+\|\|\s+start(\s*\=\s*true\s*)?\)\s*\{/)
|
||||
assert.match(__helpers.removeJSComments(code), /if\s*\(\s*userData\s*\.\s*currentSong\s*===\s*null\s*\|\|\s*start(\s*===?\s*true\s*)?\s*\)\s*\{/);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Loading…
Reference in New Issue
Block a user