feat: disallow {} in member names
This commit is contained in:
parent
a33f39afe5
commit
3f003b5353
4 changed files with 4 additions and 4 deletions
|
@ -1,2 +1,2 @@
|
|||
export const memberNameRegex = /^[^@\\?!#/\\\\[\]"'$%&()+<=>^|~`,]{1,100}$/;
|
||||
export const memberNameRegex = /^[^@\\?!#/\\\\[\]"\\{\\}'$%&()+<=>^|~`,]{1,100}$/;
|
||||
export const usernameRegex = /^[\w-.]{2,40}$/;
|
||||
|
|
|
@ -274,7 +274,7 @@
|
|||
<p class="text-muted my-2">
|
||||
<Icon name="info-circle-fill" aria-label="Info" /> Your members must have distinct names. Member
|
||||
names must be 100 characters long at most, and cannot contain the following characters: @ ?
|
||||
! # / \ [ ] " ' $ % & ( ) + < = > ^ | ~ ` and ,
|
||||
! # / \ [ ] " ' $ % & ( ) { } + < = > ^ | ~ ` and ,
|
||||
</p>
|
||||
{#if newMemberError}
|
||||
<ErrorAlert error={newMemberError} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue