From 7c1d03a93e1458500f527949d3277296ddaab161 Mon Sep 17 00:00:00 2001 From: Ryan Manuel Date: Wed, 9 Oct 2024 11:59:25 -0500 Subject: [PATCH] fix: prevent windows from throwing an error with a mixture of carriage returns --- lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.js b/lib/utils.js index fb7592b..a192426 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -134,7 +134,7 @@ const utils = { * @return {Array} */ parseTable (data) { - const lines = data.split(/(\r\n\r\n|\r\n\n|\n\r\n)|\n\n/).filter(line => { + const lines = data.split(/(\r\n\r\n|\r\n\n|\n\r\n|\n\n)/).filter(line => { return line.trim().length > 0 }).map((e) => e.split(/(\r\n|\n|\r)/).filter(line => line.trim().length > 0))