From 037d8635019df67c0556644fd75b85cd734eb084 Mon Sep 17 00:00:00 2001 From: Luke Steinmann <92131626+lulululu12345@users.noreply.github.com> Date: Sun, 3 Jul 2022 20:46:27 -0400 Subject: [PATCH] fix(curriculum): remove whitespace when testing user input (#46749) * fix: Trim whitespace when testing user solution * fix: remove changes from Italian and Portugese curriculums --- .../60fac56271087806def55b33.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fac56271087806def55b33.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fac56271087806def55b33.md index 5bebc635a14..42c523f1877 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fac56271087806def55b33.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fac56271087806def55b33.md @@ -26,7 +26,7 @@ assert.equal(document.querySelector('fieldset:nth-child(3) > label:nth-child(3)' You should place the text before the `select` element. ```js -assert.match(document.querySelector('fieldset:nth-child(3) > label:nth-child(3)')?.innerHTML?.replace(/[\t\n]+/g, ''), /^How did you hear about us\?/); +assert.match(document.querySelector('fieldset:nth-child(3) > label:nth-child(3)')?.innerHTML?.trim().replace(/[\t\n]+/g, ''), /^How did you hear about us\?/); ``` # --seed--