From 4d96e7bffa650a1d923c3fa8242a6820acf4392e Mon Sep 17 00:00:00 2001 From: Laurent Monin Date: Tue, 16 Jun 2015 15:29:40 +0200 Subject: [PATCH] luceneEscape: also escape slash --- lib/import_functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/import_functions.js b/lib/import_functions.js index 7bc9d78..789fae7 100644 --- a/lib/import_functions.js +++ b/lib/import_functions.js @@ -318,7 +318,7 @@ var MBReleaseImportHelper = (function() { } function luceneEscape(text) { - var newtext = text.replace(/[-[\]{}()*+?~:\\^!"]/g, "\\$&"); + var newtext = text.replace(/[-[\]{}()*+?~:\\^!"\/]/g, "\\$&"); return newtext.replace("&&", "\&&").replace("||", "\||"); }