From 2dd0165bfc7fa514bf80c76074ee18645f0fc30a Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 26 Sep 2016 14:24:35 +0100 Subject: [PATCH] Correct regex for hash at the start --- src/components/views/elements/DirectorySearchBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/elements/DirectorySearchBox.js b/src/components/views/elements/DirectorySearchBox.js index adca77ff9f..b0931cfe47 100644 --- a/src/components/views/elements/DirectorySearchBox.js +++ b/src/components/views/elements/DirectorySearchBox.js @@ -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() {