mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): replace ambiguous regex in HTML structure tests (#65748)
This commit is contained in:
@@ -41,7 +41,7 @@ assert.match(code, /<\/header>/i);
|
||||
Your `header` element should be inside the `body` element.
|
||||
|
||||
```js
|
||||
assert.match(code, /<\/header>[.\n\s]*<\/body>/im)
|
||||
assert.exists(document.querySelector('body > header'));
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
@@ -28,7 +28,7 @@ assert.match(code, /<\/main\>/);
|
||||
Your `main` element should be below your `header` element.
|
||||
|
||||
```js
|
||||
assert.match(code, /<\/header>[.\n\s]*<main>/im)
|
||||
assert.exists(document.querySelector('header + main'));
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Reference in New Issue
Block a user