Skip to content

Commit

Permalink
🗜️ build [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkedJS bot committed Jan 27, 2022
1 parent 5fba688 commit a200d0a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/marked.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function splitCells(tableRow, count) {
cells.shift();
}

if (!cells[cells.length - 1].trim()) {
if (cells.length > 0 && !cells[cells.length - 1].trim()) {
cells.pop();
}

Expand Down
2 changes: 1 addition & 1 deletion lib/marked.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ function splitCells(tableRow, count) {

// First/last cell in a row cannot be empty if it has no leading/trailing pipe
if (!cells[0].trim()) { cells.shift(); }
if (!cells[cells.length - 1].trim()) { cells.pop(); }
if (cells.length > 0 && !cells[cells.length - 1].trim()) { cells.pop(); }

if (cells.length > count) {
cells.splice(count);
Expand Down
2 changes: 1 addition & 1 deletion lib/marked.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
cells.shift();
}

if (!cells[cells.length - 1].trim()) {
if (cells.length > 0 && !cells[cells.length - 1].trim()) {
cells.pop();
}

Expand Down
2 changes: 1 addition & 1 deletion marked.min.js

Large diffs are not rendered by default.

0 comments on commit a200d0a

Please sign in to comment.