From 051a010798574b806f1f9384fb042762fdfdfa15 Mon Sep 17 00:00:00 2001 From: Ilenia Date: Fri, 26 Feb 2021 22:17:47 +0100 Subject: [PATCH] fix(learn): disallow www link from challenge (#41275) This commit disallows www link from "Nest an anchor in a paragraph" challenge. --- .../nest-an-anchor-element-within-a-paragraph.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/nest-an-anchor-element-within-a-paragraph.md b/curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/nest-an-anchor-element-within-a-paragraph.md index fc1474fcc8..faf7071815 100644 --- a/curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/nest-an-anchor-element-within-a-paragraph.md +++ b/curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/nest-an-anchor-element-within-a-paragraph.md @@ -47,8 +47,7 @@ You should have an `a` element that links to "`https://freecatphotoapp.com`". ```js assert( - $('a[href="https://freecatphotoapp.com"]').length > 0 || - $('a[href="http://www.freecatphotoapp.com"]').length > 0 + $('a[href="https://freecatphotoapp.com"]').length > 0 ); ``` @@ -72,8 +71,7 @@ Your `a` element should be nested within your new `p` element. ```js assert( - $('a[href="https://freecatphotoapp.com"]').parent().is('p') || - $('a[href="http://www.freecatphotoapp.com"]').parent().is('p') + $('a[href="https://freecatphotoapp.com"]').parent().is('p') ); ``` @@ -84,11 +82,7 @@ assert( $('a[href="https://freecatphotoapp.com"]') .parent() .text() - .match(/View\smore\s/gi) || - $('a[href="http://www.freecatphotoapp.com"]') - .parent() - .text() - .match(/View\smore\s/gi) + .match(/View\smore\s/gi) ); ```