Merge pull request #1272 from hmhealey/plt912
PLT-912 Stopped automatically appending *s to the end of single word search queries
Этот коммит содержится в:
@@ -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()) {
|
||||
|
||||
Ссылка в новой задаче
Block a user