groups: fix name validation regex

fixes urbit/landscape#906
This commit is contained in:
James Acklin 2021-06-14 16:28:19 -04:00
parent 20b377f069
commit d7d3c15ccc

View File

@ -17,7 +17,7 @@ import { AsyncButton } from '~/views/components/AsyncButton';
const formSchema = Yup.object({
title: Yup.string()
.matches(/^(\D).+$/, 'Group names may not start with a number')
.matches(/^(\D).*$/, 'Group names may not start with a number')
.required('Group must have a name'),
description: Yup.string(),
isPrivate: Yup.boolean()