diff --git a/ofx.js b/ofx.js index 64de7dc..598c558 100644 --- a/ofx.js +++ b/ofx.js @@ -18,7 +18,7 @@ function parse(data) { const ofx = data.split('', 2); // firstly, parse the headers - const headerString = ofx[0].split(/\r?\n/); + const headerString = ofx[0].split(/\r|\n|\r\n/); const header = {}; headerString.forEach((attrs) => { const headAttr = attrs.split(/:/,2);