From 9305b24794c89c823954dce5c3068cacd055d4cb Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 9 Apr 2021 00:20:34 -0400 Subject: [PATCH] Validate matrix id on the front end. Fixes #245 --- src/shared/components/person.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,}$" /> -- 2.44.1