summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-11-02 14:05:13 -0500
committerhmhealey <harrisonmhealey@gmail.com>2015-11-02 14:05:13 -0500
commit3328505fb180e53f5d3b9454146a2050a722f37d (patch)
treeaa67421695a311750ee10acab298958826f941f8 /web
parente5a5934ab4a950ce5f920958e694397c584430d5 (diff)
downloadchat-3328505fb180e53f5d3b9454146a2050a722f37d.tar.gz
chat-3328505fb180e53f5d3b9454146a2050a722f37d.tar.bz2
chat-3328505fb180e53f5d3b9454146a2050a722f37d.zip
Stopped automatically appending * to single word search queries
Diffstat (limited to 'web')
-rw-r--r--web/react/components/search_bar.jsx8
1 files changed, 1 insertions, 7 deletions
diff --git a/web/react/components/search_bar.jsx b/web/react/components/search_bar.jsx
index 1b81a5ee0..818650769 100644
--- a/web/react/components/search_bar.jsx
+++ b/web/react/components/search_bar.jsx
@@ -106,14 +106,8 @@ export default class SearchBar extends React.Component {
if (terms.length) {
this.setState({isSearching: true});
- // append * if not present
- let searchTerms = terms;
- if (searchTerms.search(/\*\s*$/) === -1) {
- searchTerms = searchTerms + '*';
- }
-
client.search(
- searchTerms,
+ terms,
(data) => {
this.setState({isSearching: false});
if (utils.isMobile()) {