variable USERNAME_RE

Matches a valid username, made of letters, digits and underscores within the VALIDATION limits. Sign-up and renaming check it on both sides. It uses the same \w that a handle's pattern (HANDLE_SOURCE) reads a name with; only a user from another instance has the @host part.

Type

RegExp

Usage

import { USERNAME_RE } from "shared/validation.ts";