diff --git a/src/util/StringReader.js b/src/util/StringReader.js index fd589399..84c66324 100755 --- a/src/util/StringReader.js +++ b/src/util/StringReader.js @@ -13,7 +13,7 @@ function StringReader(text){ * @type String * @private */ - this._input = text.replace(/\n\r?/g, "\n"); + this._input = text.replace(/(\r|\n){1,2}/g, "\n"); /** @@ -264,4 +264,4 @@ StringReader.prototype = { return buffer; } -}; \ No newline at end of file +};