recognize .csl.txt files

This commit is contained in:
Simon Kornblith 2011-03-23 21:29:19 +00:00
parent b24884d8ea
commit da40bc07d2

View file

@ -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) {