Ignore files in translators directory not ending in .js

Fixes #339
This commit is contained in:
Simon Kornblith 2013-06-13 14:18:59 -04:00
parent f02132f5a9
commit 9f0e5c02a6

View file

@ -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;