fix(curriculum): shorten regex to relevant code (#57332)

This commit is contained in:
Lasse Jørgensen
2024-11-26 21:40:45 +01:00
committed by GitHub
parent c46d324b66
commit 155c1b0280

View File

@@ -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.