Skip to content

Commit de11fd5

Browse files
authored
fix(curriculum): replace head content regex (freeCodeCamp#55924)
1 parent 10f8df5 commit de11fd5

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-responsive-web-design-by-building-a-piano/612e83ec2eca1e370f830511.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ assert.strictEqual(document.querySelectorAll('link')?.length, 1);
3333
Your `link` element should be inside your `head` element.
3434
3535
```js
36-
const headContentRegex = /(?<=<head\s*>)(?:.|\s*)*?(?=<\/head\s*>)/;
36+
const headContentRegex = /(?<=<head\s*>)[\S|\s]*(?=<\/head\s*>)/;
3737
const headElementContent = code.match(headContentRegex);
3838

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

0 commit comments

Comments
 (0)