Skip to content

Commit b924341

Browse files
removed cap for gambit
1 parent 7ba230d commit b924341

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async function gambitSubmit(request, env) {
8383
if (!/^[A-Za-z0-9 _\-\.!?']+$/.test(name)) return json({ error: 'Name contains invalid characters.' }, 400);
8484

8585
const score = parseInt(body.score, 10);
86-
if (!Number.isFinite(score) || score < 0 || score > 999999999) return json({ error: 'Invalid score.' }, 400);
86+
if (!Number.isFinite(score) || score < 0) return json({ error: 'Invalid score.' }, 400);
8787

8888
const difficulty = body.difficulty;
8989
if (!GAMBIT_VALID_DIFFS.includes(difficulty)) return json({ error: 'Invalid difficulty.' }, 400);

0 commit comments

Comments
 (0)