feat(curriculum): remove space requirement in steps 43&46 of cat photo app project (#47019)

* fix: remove requirement for space before text

* Apply suggestions from code review
This commit is contained in:
Ilenia
2022-07-27 22:59:45 +02:00
committed by GitHub
parent c356ecfa29
commit f50d190d8b
2 changed files with 2 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ The text ` Indoor` should be located directly to the right of your `radio` butto
```js
const radioInputElem = $('input')[0];
assert(
radioInputElem.nextSibling.nodeValue.replace(/\s+/g, ' ').match(/Indoor/i)
radioInputElem.nextSibling.nodeValue.replace(/\s+/g, ' ').match(/\s*Indoor/i)
);
```

View File

@@ -28,7 +28,7 @@ The text ` Outdoor` should be located directly to the right of your new `radio`
const radioButtons = [...$('input')];
assert(
radioButtons.filter((btn) =>
btn.nextSibling.nodeValue.replace(/\s+/g, ' ').match(/ Outdoor/i)
btn.nextSibling.nodeValue.replace(/\s+/g, ' ').match(/ *Outdoor/i)
).length
);
```