From 5081e1bff92635164a0c703790fa7f00bbbb81e8 Mon Sep 17 00:00:00 2001 From: Mark Beamer Jr Date: Mon, 12 Nov 2018 21:52:18 -0500 Subject: [PATCH] added removal from query `lbry://` ( lbry urls ) --- server/controllers/lighthouse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controllers/lighthouse.js b/server/controllers/lighthouse.js index 81bd4ae..cc441a8 100644 --- a/server/controllers/lighthouse.js +++ b/server/controllers/lighthouse.js @@ -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' ]; -- 2.45.2