From de11fd5d31d333ba9789766d351515b2ed03f38d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lasse=20J=C3=B8rgensen?= <28780271+lasjorg@users.noreply.github.com> Date: Mon, 26 Aug 2024 08:42:35 +0200 Subject: [PATCH] fix(curriculum): replace head content regex (#55924) --- .../612e83ec2eca1e370f830511.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-responsive-web-design-by-building-a-piano/612e83ec2eca1e370f830511.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-responsive-web-design-by-building-a-piano/612e83ec2eca1e370f830511.md index 75f78b75f3b..c9bbd68891b 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-responsive-web-design-by-building-a-piano/612e83ec2eca1e370f830511.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-responsive-web-design-by-building-a-piano/612e83ec2eca1e370f830511.md @@ -33,7 +33,7 @@ assert.strictEqual(document.querySelectorAll('link')?.length, 1); Your `link` element should be inside your `head` element. ```js -const headContentRegex = /(?<=)(?:.|\s*)*?(?=<\/head\s*>)/; +const headContentRegex = /(?<=)[\S|\s]*(?=<\/head\s*>)/; const headElementContent = code.match(headContentRegex); const headElement = document.createElement("head");