Changed regex #125

Merged
marcdeb1 merged 1 commit from search_accuracy into master 2018-11-07 19:50:04 +01:00

View file

@ -319,7 +319,7 @@ function getWashedQuery (query) {
query = sentence.join(' ');
// 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) {