diff --git a/challenges/03-front-end-libraries/react.json b/challenges/03-front-end-libraries/react.json
index 07d813116c..9114957b6a 100644
--- a/challenges/03-front-end-libraries/react.json
+++ b/challenges/03-front-end-libraries/react.json
@@ -714,7 +714,7 @@
}
},
"tests": [
- "getUserInput => assert(getUserInput('index').replace(/ /g, '').includes('classMyComponentextendsReact.Component{'), 'message: There should be a React component called MyComponent
.');",
+ "getUserInput => assert(getUserInput('index').replace(/\\s/g, '').includes('classMyComponentextendsReact.Component{'), 'message: There should be a React component called MyComponent
.');",
"assert((function() { const mockedComponent = Enzyme.mount(React.createElement(MyComponent)); return mockedComponent.find('h1').text() === 'My First React Component!'; })(), 'message: MyComponent
should contain an h1
tag with text My First React Component!
Case and punctuation matter.');",
"assert(document.getElementById('challenge-node').childNodes.length === 1, 'message: MyComponent
should render to the DOM.');"
],