added removal from query lbry:// ( lbry urls ) #134

Merged
tiger5226 merged 1 commit from ignore_lbry_urls into master 2018-11-13 03:56:28 +01:00

View file

@ -317,7 +317,7 @@ function getStatus () {
function getWashedQuery (query) {
// compress multiple white spaces to 1
query = query.toLowerCase().replace(/ +/g, ' ');
query = query.toLowerCase().replace(/ +/g, ' ').replace('lbry://', '');
let splitBy = ['&', '$', ' '];
let regex = new RegExp(splitBy.join('|'), 'gi');
let badWords = [ 'from', 'with', 'not', 'can', 'all', 'are', 'for', 'but', 'and', 'the' ];