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:
Luke Steinmann
2022-07-03 20:46:27 -04:00
committed by GitHub
parent 0a4fdc6889
commit 037d863501

View File

@@ -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--