Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update edge-config.ts

Steven Tey6fec0b487372
diff --git a/apps/web/lib/edge-config.ts b/apps/web/lib/edge-config.ts
index 17f8da654f..4a1adfa99e 100644
--- a/apps/web/lib/edge-config.ts
+++ b/apps/web/lib/edge-config.ts
@@ -81,7 +81,7 @@ export const isReservedKey = async (key: string) => {
} catch (e) {
reservedKeys = [];
}
- return reservedKeys.includes(key);
+ return reservedKeys.includes(key.toLowerCase());
};
export const isReservedUsername = async (key: string) => {
@@ -94,5 +94,5 @@ export const isReservedUsername = async (key: string) => {
} catch (e) {
reservedUsernames = [];
}
- return reservedUsernames.includes(key);
+ return reservedUsernames.includes(key.toLowerCase());
};