From 155c1b028012293d3183caac93ddd9fce4bc5f52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lasse=20J=C3=B8rgensen?= <28780271+lasjorg@users.noreply.github.com> Date: Tue, 26 Nov 2024 21:40:45 +0100 Subject: [PATCH] fix(curriculum): shorten regex to relevant code (#57332) --- .../671141d8e32fe934c26fa1be.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/671141d8e32fe934c26fa1be.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/671141d8e32fe934c26fa1be.md index 16a2756925a..02212302970 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/671141d8e32fe934c26fa1be.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/671141d8e32fe934c26fa1be.md @@ -17,16 +17,16 @@ You should use the existing anchor element, do not create a new one. assert.lengthOf(document.querySelectorAll('a'), 1); ``` -You should have the words `See more ` before the anchor element. +You should have the words `See more ` before the anchor element. Make sure you include the space after the last word. ```js -assert.match(code, /See more cat photos<\/a>/) +assert.match(code, /See more cat photos<\/a> in our gallery/) +assert.match(code, /<\/a> in our gallery/) ``` You should have `See more cat photos in our gallery` in your code.