From 0511d37b07b80cdf67131342642089d7aee13bb4 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 22 Jun 2015 11:51:20 -0400 Subject: [PATCH] Replace multiple spaces in platform names for full-text searches Closes #770 --- chrome/content/zotero/xpcom/fulltext.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/fulltext.js b/chrome/content/zotero/xpcom/fulltext.js index 09654e246b..d5bc5645e8 100644 --- a/chrome/content/zotero/xpcom/fulltext.js +++ b/chrome/content/zotero/xpcom/fulltext.js @@ -109,7 +109,7 @@ Zotero.Fulltext = new function(){ this.decoder = Components.classes["@mozilla.org/intl/utf8converterservice;1"]. getService(Components.interfaces.nsIUTF8ConverterService); - var platform = Zotero.platform.replace(' ', '-'); + var platform = Zotero.platform.replace(/ /g, '-'); _pdfConverterFileName = this.pdfConverterName + '-' + platform; _pdfInfoFileName = this.pdfInfoName + '-' + platform; if (Zotero.isWin) {