From ed6528c24f1105b9f70f5790755f5499ace9bbd4 Mon Sep 17 00:00:00 2001 From: Renato Pereira Back Date: Tue, 30 Mar 2021 15:21:49 -0300 Subject: [PATCH] Fix #11 --- ofx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);