Correct regex for hash at the start
parent
fa193e775a
commit
2dd0165bfc
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue