From ab2bf223cb2840cf2158e49e28bdb44590d4eae6 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:57 +0200 Subject: [PATCH] fix(curriculum) replace head content regex (#55923) --- .../62cc5b1779e4d313466f73c5.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/62cc5b1779e4d313466f73c5.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/62cc5b1779e4d313466f73c5.md index 89e9d86666d..012ff0e5d63 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/62cc5b1779e4d313466f73c5.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/62cc5b1779e4d313466f73c5.md @@ -39,7 +39,7 @@ assert.notMatch(code, /<\/link>/); 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");