From 10f8df5d8b36692bfeb382e3775e77f8e61efa68 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:01 +0200 Subject: [PATCH] fix(curriculum): replace head content regex (#55925) --- .../615f34ecc1091b4fd5a8a484.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f34ecc1091b4fd5a8a484.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f34ecc1091b4fd5a8a484.md index 25dd5a9fae3..986fa607633 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f34ecc1091b4fd5a8a484.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f34ecc1091b4fd5a8a484.md @@ -30,7 +30,7 @@ assert.notMatch(code, /<\/link>/); Your two `link` elements should be inside the `head` element. ```js -const headContentRegex = /(?<=)(?:.|\s*)*?(?=<\/head\s*>)/; +const headContentRegex = /(?<=)[\S|\s]*(?=<\/head\s*>)/; const headElementContent = code.match(headContentRegex); const headElement = document.createElement("head");