Escape dash in regex
This commit is contained in:
parent
f53a12d904
commit
302bd6c3e9
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ export default React.createClass({
|
|||
|
||||
_checkGroupId: function(e) {
|
||||
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 '=_-./'");
|
||||
}
|
||||
this.setState({
|
||||
|
|
Loading…
Reference in a new issue