fixed tests for link to external pages challenge (#41191)
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
This commit is contained in:
@ -32,7 +32,7 @@ assert(/cat photos/gi.test($('a').text()));
|
|||||||
You need an `a` element that links to `https://freecatphotoapp.com`
|
You need an `a` element that links to `https://freecatphotoapp.com`
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(/https:\/\/(www\.)?freecatphotoapp\.com/gi.test($('a').attr('href')));
|
assert(/^https?:\/\/freecatphotoapp\.com\/?$/i.test($('a').attr('href')));
|
||||||
```
|
```
|
||||||
|
|
||||||
Your `a` element should have a closing tag.
|
Your `a` element should have a closing tag.
|
||||||
|
Reference in New Issue
Block a user