From 9d7fa46e4e5d951b38cdbb3dc3169aea5682e5f1 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:43:32 +0200 Subject: [PATCH] fix(curriculum) replace head content regex (#55922) --- .../614385513d91ae5c251c2052.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-css-grid-by-building-a-magazine/614385513d91ae5c251c2052.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-css-grid-by-building-a-magazine/614385513d91ae5c251c2052.md index 021ced0af65..78c7195fa39 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-css-grid-by-building-a-magazine/614385513d91ae5c251c2052.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-css-grid-by-building-a-magazine/614385513d91ae5c251c2052.md @@ -22,7 +22,7 @@ assert.strictEqual(document.querySelectorAll('link')?.length, 3); Your `link` elements 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"); @@ -76,7 +76,7 @@ assert.strictEqual(title?.length, 1); Your `title` 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");