mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-28 23:01:57 -04:00
fix(curriculum): strict regex check step 58 platformer game (#53313)
This commit is contained in:
@@ -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--
|
||||
|
||||
Reference in New Issue
Block a user