Changed regex
This commit is contained in:
parent
f18155d52b
commit
c6b4d63eb2
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,7 @@ function getWashedQuery (query) {
|
||||||
query = sentence.join(' ');
|
query = sentence.join(' ');
|
||||||
|
|
||||||
// remove all words < 3 in length
|
// remove all words < 3 in length
|
||||||
return query.replace(/(\b(\w{1,2})\b(\s|$))/g, '');
|
return query.replace(/((\s|^)\b(\w{1,2})\b)/g, '').trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
function getEscapedQuery (query) {
|
function getEscapedQuery (query) {
|
||||||
|
|
Loading…
Reference in a new issue