From 968289c23df09ef0548bce92cff26fd35148cd21 Mon Sep 17 00:00:00 2001 From: Govardhan <70331747+gova646@users.noreply.github.com> Date: Tue, 23 Apr 2024 15:00:11 +0530 Subject: [PATCH] fix(curriculum): Updated the tests to accpet the answer irrespective of the order of concatenation (#54468) --- .../660f229d2dbe09ef2954a4a1.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator/660f229d2dbe09ef2954a4a1.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator/660f229d2dbe09ef2954a4a1.md index 592fc86ccbf..22f0d0e20e8 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator/660f229d2dbe09ef2954a4a1.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-introductory-javascript-by-building-a-pyramid-generator/660f229d2dbe09ef2954a4a1.md @@ -18,19 +18,19 @@ In your `for...of` loop, use the addition operator to concatenate the `row` valu You should use the concatenation operator on your `result` variable. ```js -assert.match(code, /result\s*\+/); +assert.match(code, /(?:result\s*\+|\+\s*result)/); ``` You should concatenate `row` to your `result` variable. ```js -assert.match(code, /result\s*\+\s*row/); +assert.match(code, /result\s*\+\s*row|row\s*\+\s*result/); ``` You should assign the result of your concatenation back to the `result` variable. ```js -assert.match(code, /result\s*=\s*result\s*\+\s*row;?/) +assert.match(code, /result\s*=\s*(result\s*\+\s*row|row\s*\+\s*result);?/); ``` # --seed--