mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-12 19:32: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) {
|
function luceneEscape(text) {
|
||||||
var newtext = text.replace(/[-[\]{}()*+?~:\\^!"]/g, "\\$&");
|
var newtext = text.replace(/[-[\]{}()*+?~:\\^!"\/]/g, "\\$&");
|
||||||
return newtext.replace("&&", "\&&").replace("||", "\||");
|
return newtext.replace("&&", "\&&").replace("||", "\||");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue