mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-08 18:01:45 -04:00
fix(curriculum): Mega Navbar step 1 - update regex (#59097)
Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com> Co-authored-by: sembauke <semboot699@gmail.com>
This commit is contained in:
committed by
GitHub
parent
af28f4bc0f
commit
d56d3d15bb
@@ -29,7 +29,7 @@ assert.match(code, /export\s+(const|function)\s+Navbar\s*(=\s*)?\(\)\s*(=>\s*)?\
|
||||
You should return an empty pair of round parentheses inside the `Navbar` function.
|
||||
|
||||
```js
|
||||
assert.match(code, /export\s+(const|function)\s+Navbar\s*(=\s*)?\(\)\s*(=>\s*)?\{\s*return\s*\(\s*\)\s*\}/)
|
||||
assert.match(code, /export\s+(const|function)\s+Navbar\s*(=\s*)?\(\)\s*(=>\s*)?\{\s*return\s*\(\s*\)\s*;?\s*\}/)
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Reference in New Issue
Block a user