From 5331994dbe155e18a1df3135c79b3a4e46596601 Mon Sep 17 00:00:00 2001 From: Abhishek Ranjan <28575935+abhishekrnjn@users.noreply.github.com> Date: Wed, 14 Jun 2023 21:37:59 +0530 Subject: [PATCH] fix(curriculum): regex to handle whitespaces between spread operator and value (#50678) --- .../copy-an-array-with-the-spread-operator.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/copy-an-array-with-the-spread-operator.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/copy-an-array-with-the-spread-operator.md index 9029b1b14b3..7c0b9f2ea0f 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/copy-an-array-with-the-spread-operator.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/copy-an-array-with-the-spread-operator.md @@ -65,7 +65,7 @@ assert.deepEqual(copyMachine(['it works'], 3), [ The `copyMachine` function should utilize the `spread operator` with array `arr` ```js -assert(code.match(/\.\.\.arr/)); +assert(code.match(/\.\.\.\s*arr/)); ``` # --seed--