commit f0c2507b893b798877e21d35fd0846b16e192781
parent 6f9ffe13e3b832f4d0ef467fa02662fa071d7209
Author: Simon Kornblith <simon@simonster.com>
Date: Thu, 13 Jun 2013 14:37:51 -0400
Anchor regex
Diffstat:
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(!(/[^.].*\.js/.test(leafName))) continue;
+ if(!(/^[^.].*\.js$/.test(leafName))) continue;
var lastModifiedTime = file.lastModifiedTime;
var dbCacheEntry = false;