From b66b38d2cf915537764152145c569e9dab01cbd5 Mon Sep 17 00:00:00 2001 From: Fatima <74059734+FaWayo@users.noreply.github.com> Date: Tue, 23 Jan 2024 17:10:45 +0000 Subject: [PATCH] fix(curriculum): strict regex check step 58 platformer game (#53313) --- .../64c9e90c433fde2e870285a3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md index cd54674d4c9..e6441047dff 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64c9e90c433fde2e870285a3.md @@ -22,7 +22,7 @@ assert.match(code, /const\s+collisionDetectionRules\s*=\s*\[\s*(?:[^\]]*\s*)*\]; You should have a boolean expression that checks if the player's `y` position plus the player's height is less than or equal to the platform's `y` position. ```js -assert.match(code, /const\s+collisionDetectionRules\s*=\s*\[\s*player\.position\.y\s+\+\s*player\.height\s*<=\s*platform\.position\.y,?\s*]\s*;?/); +assert.match(code, /const\s+collisionDetectionRules\s*=\s*\[\s*player\.position\.y\s*\+\s*player\.height\s*<=\s*platform\.position\.y\s*,?\s*]\s*;?/); ``` # --seed--