Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/yibn2008/find-process
Browse files Browse the repository at this point in the history
  • Loading branch information
yibn2008 committed Dec 28, 2024
2 parents d9fc421 + 60d8b9f commit 464c20b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 464c20b

Please sign in to comment.