commit afef6bc5a7a4bc04079eab974c6e9eb7292dd714 parent 54fd18cce3e50281bcec039635d039670a12f9d4 Author: Simon Kornblith <simon@simonster.com> Date: Wed, 18 Jul 2012 15:03:52 -0400 Fix or strings in IE Diffstat:
| M | 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 @@ -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);