Replace multiple spaces in platform names for full-text searches

Closes #770
This commit is contained in:
Dan Stillman 2015-06-22 11:51:20 -04:00
parent a5403b7499
commit 0511d37b07

View file

@ -109,7 +109,7 @@ Zotero.Fulltext = new function(){
this.decoder = Components.classes["@mozilla.org/intl/utf8converterservice;1"]. this.decoder = Components.classes["@mozilla.org/intl/utf8converterservice;1"].
getService(Components.interfaces.nsIUTF8ConverterService); getService(Components.interfaces.nsIUTF8ConverterService);
var platform = Zotero.platform.replace(' ', '-'); var platform = Zotero.platform.replace(/ /g, '-');
_pdfConverterFileName = this.pdfConverterName + '-' + platform; _pdfConverterFileName = this.pdfConverterName + '-' + platform;
_pdfInfoFileName = this.pdfInfoName + '-' + platform; _pdfInfoFileName = this.pdfInfoName + '-' + platform;
if (Zotero.isWin) { if (Zotero.isWin) {