You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Change client-side validation of group IDs to match synapse
This commit is contained in:
@ -55,8 +55,8 @@ export default React.createClass({
|
|||||||
|
|
||||||
_checkGroupId: function(e) {
|
_checkGroupId: function(e) {
|
||||||
let error = null;
|
let error = null;
|
||||||
if (!/^[a-zA-Z0-9]*$/.test(this.state.groupId)) {
|
if (!/^[a-z0-9=_-\.\/]*$/.test(this.state.groupId)) {
|
||||||
error = _t("Community IDs may only contain alphanumeric characters");
|
error = _t("Community IDs may only contain characters a-z, 0-9, or '=_-./'");
|
||||||
}
|
}
|
||||||
this.setState({
|
this.setState({
|
||||||
groupIdError: error,
|
groupIdError: error,
|
||||||
|
Reference in New Issue
Block a user