From da40bc07d2e690e0f68ba48f9c7158b69073f3ba Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 23 Mar 2011 21:29:19 +0000 Subject: [PATCH] recognize .csl.txt files --- chrome/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 index e0b2d95e8e..374749753a 100644 --- 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) {