fix(curriculum): make space optional (#46531)

This commit is contained in:
billybrown-iii
2022-06-17 00:59:40 -07:00
committed by GitHub
parent 45c7ba5333
commit 72e35ec256

View File

@@ -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)
);
```