luceneEscape: also escape slash

This commit is contained in:
Laurent Monin 2015-06-16 15:29:40 +02:00
parent 4719a5d7d7
commit 4d96e7bffa

View file

@ -318,7 +318,7 @@ var MBReleaseImportHelper = (function() {
}
function luceneEscape(text) {
var newtext = text.replace(/[-[\]{}()*+?~:\\^!"]/g, "\\$&");
var newtext = text.replace(/[-[\]{}()*+?~:\\^!"\/]/g, "\\$&");
return newtext.replace("&&", "\&&").replace("||", "\||");
}