mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-25 02:14:11 -05:00
fix(curriculum): update tests for step 41 of cat photo app workshop (#63663)
This commit is contained in:
@@ -18,14 +18,14 @@ Add this declaration as the first line of the code.
|
||||
Your code should begin with the declaration `<!DOCTYPE html>`. You may have omitted the declaration, have a typo, or it is not the first line of code.
|
||||
|
||||
```js
|
||||
assert.match(code, /\<\s*!DOCTYPE\s+html\s*\>/);
|
||||
assert.match(code, /<\s*!doctype\s+html\s*>/i);
|
||||
```
|
||||
|
||||
Your `<!DOCTYPE html>` must be located at the top of the document.
|
||||
|
||||
```js
|
||||
const noSpaces = code.replace(/\s/g, '');
|
||||
assert.match(noSpaces, /^\<\!DOCTYPEhtml\>\<html/);
|
||||
assert.match(noSpaces, /^<\!doctypehtml><html/i);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Reference in New Issue
Block a user