Skip to content

Commit 10f8df5

Browse files
authored
fix(curriculum): replace head content regex (freeCodeCamp#55925)
1 parent 5f832ce commit 10f8df5

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-typography-by-building-a-nutrition-label/615f34ecc1091b4fd5a8a484.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ assert.notMatch(code, /<\/link>/);
3030
Your two `link` elements should be inside the `head` element.
3131

3232
```js
33-
const headContentRegex = /(?<=<head\s*>)(?:.|\s*)*?(?=<\/head\s*>)/;
33+
const headContentRegex = /(?<=<head\s*>)[\S|\s]*(?=<\/head\s*>)/;
3434
const headElementContent = code.match(headContentRegex);
3535

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

0 commit comments

Comments
 (0)