mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-13 20:02:27 +00:00
luceneEscape: also escape slash
This commit is contained in:
parent
4719a5d7d7
commit
4d96e7bffa
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ var MBReleaseImportHelper = (function() {
|
|||
}
|
||||
|
||||
function luceneEscape(text) {
|
||||
var newtext = text.replace(/[-[\]{}()*+?~:\\^!"]/g, "\\$&");
|
||||
var newtext = text.replace(/[-[\]{}()*+?~:\\^!"\/]/g, "\\$&");
|
||||
return newtext.replace("&&", "\&&").replace("||", "\||");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue