www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 9f0e5c02a65832997913fbcaa3da3058e5ec6c80
parent f02132f5a94a347d2b0ecc2615964fc5942b00ab
Author: Simon Kornblith <simon@simonster.com>
Date:   Thu, 13 Jun 2013 14:18:59 -0400

Ignore files in translators directory not ending in .js

Fixes #339

Diffstat:
Mchrome/content/zotero/xpcom/translation/translator.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/translation/translator.js b/chrome/content/zotero/xpcom/translation/translator.js @@ -63,7 +63,7 @@ Zotero.Translators = new function() { while(contents.hasMoreElements()) { var file = contents.getNext().QueryInterface(Components.interfaces.nsIFile); var leafName = file.leafName; - if(!leafName || leafName[0] == ".") continue; + if(!(/[^.].*\.js/.test(leafName))) continue; var lastModifiedTime = file.lastModifiedTime; var dbCacheEntry = false;