mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-18 01:00:50 -04:00
fix(curriculum): make space optional (#46531)
This commit is contained in:
@@ -72,12 +72,12 @@ const radioInputElem = $('input')[0];
|
||||
assert(!radioInputElem.previousSibling.nodeValue.match(/Indoor/i));
|
||||
```
|
||||
|
||||
The text ` Indoor` should be located directly to the right of your `radio` button. Make sure there is a space between the element and the text. You have either omitted the text or have a typo.
|
||||
The text ` Indoor` should be located directly to the right of your `radio` button. You have either omitted the text or have a typo.
|
||||
|
||||
```js
|
||||
const radioInputElem = $('input')[0];
|
||||
assert(
|
||||
radioInputElem.nextSibling.nodeValue.replace(/\s+/g, ' ').match(/ Indoor/i)
|
||||
radioInputElem.nextSibling.nodeValue.replace(/\s+/g, ' ').match(/Indoor/i)
|
||||
);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user