From ad7b09b43323d0ffc0a8ddabb43e4838a184c697 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 24 Feb 2026 13:18:42 -0800 Subject: formatting --- lib/register.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/register.ts') diff --git a/lib/register.ts b/lib/register.ts index e99238b1..ac1997db 100644 --- a/lib/register.ts +++ b/lib/register.ts @@ -19,8 +19,7 @@ export default async (user, ip) => { const reserved = ["ecash"]; if (!username) fail("Username required"); username = username.toLowerCase().replace(/\s/g, ""); - if (!valid.test(username)) - fail("Usernames can only have letters and numbers"); + if (!valid.test(username)) fail("Usernames can only have letters and numbers"); if (reserved.includes(username)) fail("Invalid username"); if (username.includes("undefined")) fail("Invalid username"); @@ -41,7 +40,9 @@ export default async (user, ip) => { if (config.ipregistry) { try { const { - location: { country: { code } }, + location: { + country: { code }, + }, }: any = await got( `https://api.ipregistry.co/${ip}?key=${config.ipregistry}&fields=location.country.code`, ).json(); -- cgit v1.2.3