Stopped automatically appending * to single word search queries
Этот коммит содержится в:
@@ -106,14 +106,8 @@ export default class SearchBar extends React.Component {
|
|||||||
if (terms.length) {
|
if (terms.length) {
|
||||||
this.setState({isSearching: true});
|
this.setState({isSearching: true});
|
||||||
|
|
||||||
// append * if not present
|
|
||||||
let searchTerms = terms;
|
|
||||||
if (searchTerms.search(/\*\s*$/) === -1) {
|
|
||||||
searchTerms = searchTerms + '*';
|
|
||||||
}
|
|
||||||
|
|
||||||
client.search(
|
client.search(
|
||||||
searchTerms,
|
terms,
|
||||||
(data) => {
|
(data) => {
|
||||||
this.setState({isSearching: false});
|
this.setState({isSearching: false});
|
||||||
if (utils.isMobile()) {
|
if (utils.isMobile()) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user