Fix or strings in IE
This commit is contained in:
parent
54fd18cce3
commit
afef6bc5a7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue