Skip to content

Commit ab2bf22

Browse files
authored
fix(curriculum) replace head content regex (freeCodeCamp#55923)
1 parent de11fd5 commit ab2bf22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/62cc5b1779e4d313466f73c5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ assert.notMatch(code, /<\/link>/);
3939
Your `link` element should be inside your `head` element.
4040
4141
```js
42-
const headContentRegex = /(?<=<head\s*>)(?:.|\s*)*?(?=<\/head\s*>)/;
42+
const headContentRegex = /(?<=<head\s*>)[\S|\s]*(?=<\/head\s*>)/;
4343
const headElementContent = code.match(headContentRegex);
4444

4545
const headElement = document.createElement("head");

0 commit comments

Comments
 (0)