mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-24 16:01:05 -04:00
fix(curriculum): shorten regex to relevant code (#57332)
This commit is contained in:
@@ -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 <a href="https:\/\/freecatphotoapp\.com">cat photos<\/a>/)
|
||||
assert.match(code, /See more <a href=/)
|
||||
```
|
||||
|
||||
You should have the words `in our gallery` after the anchor element.
|
||||
You should have the words ` in our gallery` after the anchor element. Make sure you include the space before the first word.
|
||||
|
||||
```js
|
||||
assert.match(code, /<a href="https:\/\/freecatphotoapp\.com">cat photos<\/a> in our gallery/)
|
||||
assert.match(code, /<\/a> in our gallery/)
|
||||
```
|
||||
|
||||
You should have `See more <a href="https://freecatphotoapp.com">cat photos</a> in our gallery` in your code.
|
||||
|
||||
Reference in New Issue
Block a user