mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-24 11:03:36 -05:00
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:
@@ -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--
|
||||
|
||||
Reference in New Issue
Block a user