From 44dc4f678840260ee6a5778c1e263f11dc7d9b8d Mon Sep 17 00:00:00 2001 From: camperbot Date: Thu, 6 May 2021 17:11:14 +0200 Subject: [PATCH] chore(i18n,curriculum): update translations (#42022) --- .../basic-html-and-html5/add-images-to-your-website.md | 2 +- .../basic-html-and-html5/create-a-form-element.md | 5 ++--- .../link-to-external-pages-with-anchor-elements.md | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/curriculum/challenges/espanol/01-responsive-web-design/basic-html-and-html5/add-images-to-your-website.md b/curriculum/challenges/espanol/01-responsive-web-design/basic-html-and-html5/add-images-to-your-website.md index dc121efc15..b0362828d4 100644 --- a/curriculum/challenges/espanol/01-responsive-web-design/basic-html-and-html5/add-images-to-your-website.md +++ b/curriculum/challenges/espanol/01-responsive-web-design/basic-html-and-html5/add-images-to-your-website.md @@ -52,7 +52,7 @@ assert($('img').length); Tu imagen debe tener un atributo `src` que apunte a la imagen del gatito. ```js -assert(/^https:\/\/www\.bit\.ly\/fcc-relaxing-cat$/i.test($('img').attr('src'))); +assert(/^https:\/\/(www\.)?bit\.ly\/fcc-relaxing-cat$/i.test($('img').attr('src'))); ``` El atributo `alt` de tu elemento imagen no debe estar vacío. diff --git a/curriculum/challenges/espanol/01-responsive-web-design/basic-html-and-html5/create-a-form-element.md b/curriculum/challenges/espanol/01-responsive-web-design/basic-html-and-html5/create-a-form-element.md index eb721de6f8..927e0e6f4f 100644 --- a/curriculum/challenges/espanol/01-responsive-web-design/basic-html-and-html5/create-a-form-element.md +++ b/curriculum/challenges/espanol/01-responsive-web-design/basic-html-and-html5/create-a-form-element.md @@ -37,9 +37,8 @@ assert( Tu formulario `form` debe tener un atributo `action` que esté establecido como `https://www.freecatphotoapp.com/submit-cat-photo` ```js -assert( - $('form').attr('action') === 'https://www.freecatphotoapp.com/submit-cat-photo' -); +const action = $('form').attr('action'); +assert(action.match(/^https:\/\/(www\.)?freecatphotoapp\.com\/submit-cat-photo$/i)) ``` Tu elemento `form` debe tener etiquetas correctamente abiertas y cerradas. diff --git a/curriculum/challenges/espanol/01-responsive-web-design/basic-html-and-html5/link-to-external-pages-with-anchor-elements.md b/curriculum/challenges/espanol/01-responsive-web-design/basic-html-and-html5/link-to-external-pages-with-anchor-elements.md index 2b9c4e9466..1d6f6526f7 100644 --- a/curriculum/challenges/espanol/01-responsive-web-design/basic-html-and-html5/link-to-external-pages-with-anchor-elements.md +++ b/curriculum/challenges/espanol/01-responsive-web-design/basic-html-and-html5/link-to-external-pages-with-anchor-elements.md @@ -34,7 +34,7 @@ assert(/cat photos/gi.test($('a').text())); Necesitas un elemento `a` que enlace a `https://www.freecatphotoapp.com` ```js -assert(/^https?:\/\/www\.freecatphotoapp\.com\/?$/i.test($('a').attr('href'))); +assert(/^https?:\/\/(www\.)?freecatphotoapp\.com\/?$/i.test($('a').attr('href'))); ``` Tu elemento `a` debe tener una etiqueta de cierre.