From afef6bc5a7a4bc04079eab974c6e9eb7292dd714 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 18 Jul 2012 15:03:52 -0400 Subject: [PATCH] Fix or strings in IE --- chrome/content/zotero/xpcom/translation/translate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index bb2981036..0e6b8060b 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -2204,7 +2204,7 @@ Zotero.Translate.IO.String.prototype = { if(lfIndex !== -1) { // in case we have a CRLF this.bytesRead = lfIndex+1; - if(this.contentLength > lfIndex && this.string[lfIndex-1] === "\r") { + if(this.contentLength > lfIndex && this.string.substr(lfIndex-1, 1) === "\r") { lfIndex--; } return this.string.substr(oldPointer, lfIndex-oldPointer);