Modify MXID regex to allow ports in hostname

This commit is contained in:
Benjamin Delage 2023-07-01 13:17:03 -07:00
parent 61255bf01a
commit 20f1de05c0
No known key found for this signature in database
GPG key ID: E5385448070D3EEE

View file

@ -548,7 +548,7 @@ export class Settings extends Component<any, SettingsState> {
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})?$"
/>
</div>
</div>