Skip to content

Commit

Permalink
Merge pull request #69 from ryanthemanuel/master
Browse files Browse the repository at this point in the history
fix: prevent windows from throwing an error with a mixture of carriage returns
  • Loading branch information
yibn2008 authored Dec 28, 2024
2 parents 8e41a24 + 7c1d03a commit 60d8b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 60d8b9f

Please sign in to comment.