diff --git a/curriculum/challenges/english/04-data-visualization/json-apis-and-ajax/convert-json-data-to-html.md b/curriculum/challenges/english/04-data-visualization/json-apis-and-ajax/convert-json-data-to-html.md index ac56debfac..70c5781c5d 100644 --- a/curriculum/challenges/english/04-data-visualization/json-apis-and-ajax/convert-json-data-to-html.md +++ b/curriculum/challenges/english/04-data-visualization/json-apis-and-ajax/convert-json-data-to-html.md @@ -55,7 +55,7 @@ Here is some example JSON Your code should store the data in the `html` variable ```js -assert(code.match(/html\s+?(\+=|=\shtml\s\+)/g)); +assert(__helpers.removeWhiteSpace(code).match(/html(\+=|=html\+)/g)) ``` Your code should use a `forEach` method to loop over the JSON data from the API.