thanks naku

This commit is contained in:
Julian 2023-04-29 16:32:59 -04:00
parent 5af2762e12
commit fbe2222d1b
Signed by: NotNite
GPG Key ID: BD91A5402CCEB08A
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,9 @@ import * as Yup from "yup";
const REQUIRED = "Required.";
const USERNAME = Yup.string()
.required(REQUIRED)
.min(1, "Username is too short.");
.min(1, "Username is too short.")
.matches(/^[a-z0-9]+$/, "Username must be lowercase letters and numbers.");
const DISPLAY_NAME = Yup.string()
.required(REQUIRED)
.min(1, "Display name is too short.");