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 <muhammed@freecodecamp.org>

* Update 5dc23991f86c76b9248c6eb8.md

* allow for spaces before "("

* cleaned up edits

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>
This commit is contained in:
hanswang123456
2022-08-07 14:52:55 -04:00
committed by GitHub
parent 3053c9d8a6
commit 7ed2109eec

View File

@@ -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}<!--\s*todo:\s+add\s+link\s+to\s+cat\s+photos\s*-->/)
.match(/<\/h2>\s*\n\s{6}<!--\s*todo:\s+add\s+link\s+to\s+cat\s+photos\s*-->/)
);
```
@@ -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}<p>/));
assert(code.toLowerCase().match(/-->\s*\n\s{6}<p>/));
```
# --seed--