We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0c85706 + d8d7646 commit adda2ebCopy full SHA for adda2eb
1 file changed
src/util/StringReader.js
@@ -13,7 +13,7 @@ function StringReader(text){
13
* @type String
14
* @private
15
*/
16
- this._input = text.replace(/(\r|\n){1,2}/g, "\n");
+ this._input = text.replace(/(\r\n?|\n)/g, "\n");
17
18
19
/**
0 commit comments