Revert "Revert "Add username lowercase mutation""

This reverts commit 76e963473c.
This commit is contained in:
Alec LaLonde
2021-03-09 11:25:24 -07:00
parent b117899695
commit b501a2be87
2 changed files with 2 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ import { useUpdatePlayerUsernameMutation } from 'graphql/autogen/types';
import { useUser } from 'lib/hooks';
import React, { useEffect, useState } from 'react';
const USERNAME_REGEX = /^[a-zA-Z0-9](_(?!(\.|_))|\.(?!(_|\.))|[a-zA-Z0-9]){2,18}[a-zA-Z0-9]$/;
const USERNAME_REGEX = /^[a-z0-9](_(?!(\.|_))|\.(?!(_|\.))|[a-z0-9]){2,18}[a-z0-9]$/;
export type SetupUsernameProps = {
username: string;