mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 06:58:25 +00:00
Escape dash in regex
This commit is contained in:
@@ -55,7 +55,7 @@ export default React.createClass({
|
|||||||
|
|
||||||
_checkGroupId: function(e) {
|
_checkGroupId: function(e) {
|
||||||
let error = null;
|
let error = null;
|
||||||
if (!/^[a-z0-9=_-\.\/]*$/.test(this.state.groupId)) {
|
if (!/^[a-z0-9=_\-\.\/]*$/.test(this.state.groupId)) {
|
||||||
error = _t("Community IDs may only contain characters a-z, 0-9, or '=_-./'");
|
error = _t("Community IDs may only contain characters a-z, 0-9, or '=_-./'");
|
||||||
}
|
}
|
||||||
this.setState({
|
this.setState({
|
||||||
|
|||||||
Reference in New Issue
Block a user