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})?$" />