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

This commit is contained in:
Mark Beamer Jr 2018-11-12 21:52:18 -05:00
parent 3f80062ac8
commit 5081e1bff9
No known key found for this signature in database
GPG key ID: 1C314FB89AD76973

View file

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