Merge pull request #1272 from hmhealey/plt912

PLT-912 Stopped automatically appending *s to the end of single word search queries
Этот коммит содержится в:
Christopher Speller
2015-11-02 15:49:17 -05:00
родитель c5013610c2 dd86d3532a
Коммит 98ed40442d
3 изменённых файлов: 7 добавлений и 20 удалений

Просмотреть файл

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