fix: rwd beta - ferris wheel step 1 html test (#44625)

* fix: rwd beta - ferris wheel step 1 html test

* fix: update regex to require new line/remove caret
This commit is contained in:
Bruce B
2022-01-01 18:35:27 -08:00
committed by GitHub
parent a9852c7180
commit 070ef7bb09

View File

@ -54,7 +54,7 @@ assert(code.match(/<\/html\s*>/));
Your `html` element should be below the `DOCTYPE` declaration.
```js
assert(code.match(/^\s*<!DOCTYPE\s+html\s*>[\s\S]*<\s*html\s*>/gi));
assert(code.match(/\s*<!DOCTYPE\s+html\s*>(\r?\n)+<\s*html\s*>/gi));
```
You should have an opening `head` tag.