diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/return-a-sorted-array-without-changing-the-original-array.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/return-a-sorted-array-without-changing-the-original-array.md index 6a042167527..ab1f85159f4 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/return-a-sorted-array-without-changing-the-original-array.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/return-a-sorted-array-without-changing-the-original-array.md @@ -40,7 +40,7 @@ assert( `nonMutatingSort(globalArray)` should not be hard coded. ```js -assert(!nonMutatingSort.toString().match(/[23569]/g)); +assert(!nonMutatingSort.toString().match(/\[.*?[23569].*?\]/gs)); ``` The function should return a new array, not the array passed to it.