From 2a2657d36cff81bd1cd409cb7471b8754e3f835f Mon Sep 17 00:00:00 2001 From: fots <60556553+fotscode@users.noreply.github.com> Date: Tue, 16 Feb 2021 13:27:47 -0300 Subject: [PATCH] fix: update regex for Convert JSON Data to HTML (#41134) * fix: updated solution for Convert JSON Data to HTML * Update curriculum/challenges/english/04-data-visualization/json-apis-and-ajax/convert-json-data-to-html.md Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com> * Update curriculum/challenges/english/04-data-visualization/json-apis-and-ajax/convert-json-data-to-html.md Co-authored-by: Oliver Eyton-Williams Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com> Co-authored-by: Oliver Eyton-Williams --- .../json-apis-and-ajax/convert-json-data-to-html.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.