www

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

commit da40bc07d2e690e0f68ba48f9c7158b69073f3ba
parent b24884d8ea587f19d0df5b069e19ea1dc56ef5a1
Author: Simon Kornblith <simon@simonster.com>
Date:   Wed, 23 Mar 2011 21:29:19 +0000

recognize .csl.txt files


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

diff --git a/chrome/content/zotero/browser.js b/chrome/content/zotero/browser.js @@ -693,7 +693,7 @@ Zotero_Browser.Tab.prototype._searchFrames = function(rootDoc, searchDoc) { * Attempts import of a file; to be run on local files only */ Zotero_Browser.Tab.prototype._attemptLocalFileImport = function(doc) { - if(doc.documentURI.match(/\.csl(\.xml)?$/i)) { + if(doc.documentURI.match(/\.csl(\.xml|\.txt)?$/i)) { // read CSL string var csl = Zotero.File.getContentsFromURL(doc.documentURI); if(csl.indexOf("http://purl.org/net/xbiblio/csl") != -1) {