diff --git a/lib/utils.js b/lib/utils.js index 1c5c44a..cc43a9b 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -134,9 +134,9 @@ 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 && line.trim().length > 0 - }).map((e) => e.split(/(\r\n|\n|\r)/).filter(line => line && line.trim().length > 0)) + }).map((e) => e.split(/(\r\n|\n|\r)/).filter(line => line.trim().length > 0)) // Join multi-ligne value lines.forEach((line) => {