mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-12 03:00:53 -04:00
fix(curriculum): remove whitespace when testing user input (#46749)
* fix: Trim whitespace when testing user solution * fix: remove changes from Italian and Portugese curriculums
This commit is contained in:
@@ -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--
|
||||
|
||||
Reference in New Issue
Block a user