Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

wip

Bill Yang35f9090ad68f
diff --git a/server/src/lib/siteConfig.ts b/server/src/lib/siteConfig.ts
index 9f37afb08..4836a0071 100644
--- a/server/src/lib/siteConfig.ts
+++ b/server/src/lib/siteConfig.ts
@@ -33,7 +33,10 @@ class SiteConfig {
* Helper to determine if the input is a numeric siteId or string id
*/
private isNumericId(id: string | number): boolean {
- return typeof id === "number" || /^\d+$/.test(id);
+ if (String(id).length >= 4) {
+ return false;
+ }
+ return true;
}
/**