diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-11-02 15:49:17 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-11-02 15:49:17 -0500 |
commit | 98ed40442d92c439d622338a965ffda460ceb4a5 (patch) | |
tree | d99800e643a6987420ad967a3da4258d514e2fa7 /web | |
parent | c5013610c24dc785c5701fb6e06e52817c42ad78 (diff) | |
parent | dd86d3532a0bb7952958ff85f9ec4eff9e18db91 (diff) | |
download | chat-98ed40442d92c439d622338a965ffda460ceb4a5.tar.gz chat-98ed40442d92c439d622338a965ffda460ceb4a5.tar.bz2 chat-98ed40442d92c439d622338a965ffda460ceb4a5.zip |
Merge pull request #1272 from hmhealey/plt912
PLT-912 Stopped automatically appending *s to the end of single word search queries
Diffstat (limited to 'web')
-rw-r--r-- | web/react/components/search_bar.jsx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/web/react/components/search_bar.jsx b/web/react/components/search_bar.jsx index d6ca1f612..90865475b 100644 --- a/web/react/components/search_bar.jsx +++ b/web/react/components/search_bar.jsx @@ -102,14 +102,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()) { |