diff options
| author | Adam Soltys <[email protected]> | 2025-02-25 09:44:15 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-02-25 09:44:15 -0800 |
| commit | 99abcd90e594e1ff2fc22b75053b8a29429fda14 (patch) | |
| tree | 0f9824bfe750bb607a3e25defae33cfdb572b32d /lib | |
| parent | c8508982dc216615e3e342b734d6e16145808008 (diff) | |
| download | coinos-server-99abcd90e594e1ff2fc22b75053b8a29429fda14.tar.gz coinos-server-99abcd90e594e1ff2fc22b75053b8a29429fda14.zip | |
allow spaces
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/register.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/register.ts b/lib/register.ts index 492e6034..b9e63eee 100644 --- a/lib/register.ts +++ b/lib/register.ts @@ -10,7 +10,7 @@ import { encrypt as nip49encrypt } from "nostr-tools/nip49"; import { authenticator } from "otplib"; import { v4 } from "uuid"; -const valid = /^[\p{L}\p{N}]{2,24}$/u; +const valid = /^[\p{L}\p{N} ]{2,24}$/u; export default async (user, ip) => { let { password, pubkey, username } = user; l("registering", username); |
