diff --git a/challenges/02-javascript-algorithms-and-data-structures/functional-programming.json b/challenges/02-javascript-algorithms-and-data-structures/functional-programming.json index bf2b173c47..35466bb918 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/functional-programming.json +++ b/challenges/02-javascript-algorithms-and-data-structures/functional-programming.json @@ -289,7 +289,7 @@ ], "tests": [ "assert(fixedValue === 4, 'message: Your function incrementer should not change the value of fixedValue.');", - "assert(code.match(/function\\s+?incrementer\\(.+?\\)/g), 'message: Your incrementer function should take a parameter.');", + "assert(code.match(/function\\s+?incrementer\\s*?\\(.+?\\)/g), 'message: Your incrementer function should take a parameter.');", "assert(newValue === 5, 'message: Your incrementer function should return a value that is one larger than the fixedValue value.');" ], "solutions": [],