From: Dessalines Date: Fri, 9 Apr 2021 04:20:34 +0000 (-0400) Subject: Validate matrix id on the front end. Fixes #245 X-Git-Url: http://these/git/readmes/%24%7B%60data:application/static/%7B?a=commitdiff_plain;h=9305b24794c89c823954dce5c3068cacd055d4cb;p=lemmy-ui.git Validate matrix id on the front end. Fixes #245 --- diff --git a/src/shared/components/person.tsx b/src/shared/components/person.tsx index 211b229..57d78aa 100644 --- a/src/shared/components/person.tsx +++ b/src/shared/components/person.tsx @@ -750,7 +750,7 @@ export class Person extends Component { this, this.handleUserSettingsMatrixUserIdChange )} - minLength={3} + pattern="^@[A-Za-z0-9._=-]+:[A-Za-z0-9.-]+\.[A-Za-z]{2,}$" />