added removal from query lbry://
( lbry urls ) #134
1 changed files with 1 additions and 1 deletions
|
@ -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' ];
|
||||||
|
|
Loading…
Reference in a new issue