mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-22 21:08:12 +08:00
fix(curriculum): replace ambiguous regex in HTML structure tests (#65748)
This commit is contained in:
parent
1108d25883
commit
b1f3aa5c32
@ -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--
|
||||
|
||||
Loading…
Reference in New Issue
Block a user