From cbfdb013af4d1769d62b9aa4abaab0a51544379e Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Tue, 13 Aug 2024 05:43:08 +1200 Subject: [PATCH] fix(curriculum): allow space before semi colon in for loop (#55825) Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com> --- .../660f1a00ac619ddc1e259a66.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator/660f1a00ac619ddc1e259a66.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator/660f1a00ac619ddc1e259a66.md index 31878a804bf..d9f2a85722d 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator/660f1a00ac619ddc1e259a66.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator/660f1a00ac619ddc1e259a66.md @@ -32,7 +32,7 @@ assert.match(__helpers.removeJSComments(code), /i\s*<\s*count/); Your `for` loop should use `i < count` as the condition. ```js -assert.match(__helpers.removeJSComments(code), /for\s*\(\s*let\s+i\s*=\s*0;\s*i\s*<\s*count;/); +assert.match(__helpers.removeJSComments(code), /for\s*\(\s*let\s+i\s*=\s*0\s*;\s*i\s*<\s*count\s*;/); ``` # --seed--