fix(curriculum): allow code on new lines for camper-cafe (#44891)

This commit is contained in:
Shaun Hamilton
2022-01-26 01:29:28 +02:00
committed by GitHub
parent 98a0d3ecd2
commit 54a15c6589

View File

@ -38,13 +38,13 @@ assert(code.match(/<\/title>/i));
Your `<title>` element should be nested in your `<head>` element.
```js
assert(code.match(/<head>\s*<title>.*<\/title>\s*<\/head>/i));
assert(code.match(/<head>\s*<title>.*<\/title>\s*<\/head>/si));
```
Your `<title>` element should have the text `Camper Cafe Menu`. You may need to check your spelling.
```js
assert(code.match(/<title>camper\scafe\smenu<\/title>/i));
assert.match(document.querySelector('title')?.innerText, /camper cafe menu/i);
```
# --seed--