Stopped automatically appending * to single word search queries

Этот коммит содержится в:
hmhealey
2015-11-02 14:05:13 -05:00
родитель e5a5934ab4
Коммит 3328505fb1

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

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