mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-16 07:00:53 -04:00
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:
@@ -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)
|
||||
);
|
||||
```
|
||||
|
||||
|
||||
@@ -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
|
||||
);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user