added removal from query lbry://
( lbry urls )
This commit is contained in:
parent
3f80062ac8
commit
5081e1bff9
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