From 20f1de05c0acf6d5f76ff11a678e476a968eb8e9 Mon Sep 17 00:00:00 2001 From: Benjamin Delage Date: Sat, 1 Jul 2023 13:17:03 -0700 Subject: [PATCH] Modify MXID regex to allow ports in hostname --- src/shared/components/person/settings.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/components/person/settings.tsx b/src/shared/components/person/settings.tsx index 6ed11ef8..b6176798 100644 --- a/src/shared/components/person/settings.tsx +++ b/src/shared/components/person/settings.tsx @@ -548,7 +548,7 @@ export class Settings extends Component { placeholder="@user:example.com" value={this.state.saveUserSettingsForm.matrix_user_id} onInput={linkEvent(this, this.handleMatrixUserIdChange)} - pattern="^@[A-Za-z0-9._=-]+:[A-Za-z0-9.-]+\.[A-Za-z]{2,}$" + pattern="^@[A-Za-z0-9._=-]+:[A-Za-z0-9.-]+\.[A-Za-z]{2,}(:[0-9]{1,5})?$" />