1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00

Correct regex for hash at the start

This commit is contained in:
David Baker
2016-09-26 14:24:35 +01:00
parent fa193e775a
commit 2dd0165bfc

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() {