Merge pull request #260 from LemmyNet/validate_matrix_id

Validate matrix id on the front end. Fixes #245
This commit is contained in:
Dessalines 2021-04-09 09:17:05 -04:00 committed by GitHub
commit 3819141e4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -750,7 +750,7 @@ export class Person extends Component<any, PersonState> {
this, this,
this.handleUserSettingsMatrixUserIdChange this.handleUserSettingsMatrixUserIdChange
)} )}
minLength={3} pattern="^@[A-Za-z0-9._=-]+:[A-Za-z0-9.-]+\.[A-Za-z]{2,}$"
/> />
</div> </div>
</div> </div>