mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): allow extra whitespace for regex in step 33 (#61673)
This commit is contained in:
+1
-1
@@ -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--
|
||||
|
||||
Reference in New Issue
Block a user