From abef25063140d9eb3f53d2f3dbf696357b789532 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Thu, 10 Jul 2025 20:58:46 +1200 Subject: [PATCH] Update ID validation check --- server/homebrew.api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/homebrew.api.js b/server/homebrew.api.js index 0a62ac298..842f8a9e6 100644 --- a/server/homebrew.api.js +++ b/server/homebrew.api.js @@ -50,7 +50,7 @@ const api = { } // ID Validation Checks - if(!id.match(/^[A-Za-z0-9_-]{7,12}$/)){ + if(!id.match(/^[A-Za-z0-9_-]{7,14}$/)){ throw { name: 'ID Error', message: 'Invalid ID', status: 404, HBErrorCode: '11', brewId: id }; } if(googleId && !googleId.match(/^1(?:[A-Za-z0-9+\/]{32}|[A-Za-z0-9+\/]{43})$/)){