Trailing .+ was redundant

pull/21833/head
David Baker 2016-09-26 15:13:57 +01:00
parent 9333f91533
commit ba090a1198
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ export default class DirectorySearchBox extends React.Component {
if (!this.input) return false;
// liberal test for things that look like room aliases
return /^#.+:.+/.test(this.state.value);
return /^#.+:/.test(this.state.value);
}
render() {