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:
Aditya Ravichandran
2025-03-03 17:05:21 +05:30
committed by GitHub
parent af28f4bc0f
commit d56d3d15bb

View File

@@ -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--