From 7ed2109eece396b7bde1e98f2cfc71d5a1cb42e6 Mon Sep 17 00:00:00 2001 From: hanswang123456 <50556568+hanswang123456@users.noreply.github.com> Date: Sun, 7 Aug 2022 14:52:55 -0400 Subject: [PATCH] fix(curriculum): allow whitespaces after closing tags (#47171) * Added spacing fix to catch end of line spaces * Update curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23991f86c76b9248c6eb8.md Co-authored-by: Muhammed Mustafa * Update 5dc23991f86c76b9248c6eb8.md * allow for spaces before "(" * cleaned up edits Co-authored-by: Muhammed Mustafa --- .../5dc23991f86c76b9248c6eb8.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23991f86c76b9248c6eb8.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23991f86c76b9248c6eb8.md index 47163447fe7..76c12ef9732 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23991f86c76b9248c6eb8.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23991f86c76b9248c6eb8.md @@ -55,7 +55,7 @@ You should not change the indentation on the line with your comment element. Its assert( code .toLowerCase() - .match(/<\/h2>\n\s{6}/) + .match(/<\/h2>\s*\n\s{6}/) ); ``` @@ -79,7 +79,7 @@ assert( The opening `p` tag should have indentation that matches your `h2` and comment elements. Its opening tag should start 6 spaces over from the start of the line. ```js -assert(code.toLowerCase().match(/-->\n\s{6}

/)); +assert(code.toLowerCase().match(/-->\s*\n\s{6}

/)); ``` # --seed--