Skip to content

Commit

Permalink
Merge pull request #938 from LumenTeun/lumenteun-914
Browse files Browse the repository at this point in the history
Improves check for catphotoapp.com in 'Link to External Pages with Anchor Elements'
  • Loading branch information
Quincy Larson committed Jun 19, 2015
2 parents c2c64b1 + 0038c48 commit a339c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seed/challenges/basic-html5-and-css.json
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@
],
"tests": [
"assert((/cat photos/gi).test($('a').text()), 'Your <code>a</code> element should have the anchor text of \"cat photos\"')",
"assert($('a').filter(function(index) { return /com/gi.test($('a').attr('href')); }).length > 0, 'You need an <code>a</code> element that links to <code>http&#58;//catphotoapp.com<code>.')",
"assert(/http:\\/\\/catphotoapp\\.com/gi.test($('a').attr('href')), 'You need an <code>a</code> element that links to <code>http&#58;//catphotoapp.com<code>.')",
"assert(editor.match(/<\\/a>/g) && editor.match(/<\\/a>/g).length === editor.match(/<a/g).length, 'Make sure your <code>a</code> element has a closing tag.')"
],
"challengeSeed": [
Expand Down

0 comments on commit a339c1b

Please sign in to comment.