feat: validate names when *changing* them, too
This commit is contained in:
parent
c60429d884
commit
7d25d12722
5 changed files with 30 additions and 6 deletions
2
frontend/src/lib/api/regex.ts
Normal file
2
frontend/src/lib/api/regex.ts
Normal file
|
@ -0,0 +1,2 @@
|
|||
export const memberNameRegex = /^[^@\\?!#/\\\\[\]"'$%&()+<=>^|~`,]{1,100}$/;
|
||||
export const usernameRegex = /^[\w-.]{2,40}$/;
|
Loading…
Add table
Add a link
Reference in a new issue