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:
Ilenia
2021-02-21 07:16:00 +01:00
committed by GitHub
parent e0edae94bd
commit aa615763af

View File

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