summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-11-02 15:49:17 -0500
committerChristopher Speller <crspeller@gmail.com>2015-11-02 15:49:17 -0500
commit98ed40442d92c439d622338a965ffda460ceb4a5 (patch)
treed99800e643a6987420ad967a3da4258d514e2fa7 /web
parentc5013610c24dc785c5701fb6e06e52817c42ad78 (diff)
parentdd86d3532a0bb7952958ff85f9ec4eff9e18db91 (diff)
downloadchat-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.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 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()) {