🗜️ build [skip ci]
This commit is contained in:
parent
5fba688858
commit
a200d0a8b9
@ -272,7 +272,7 @@ function splitCells(tableRow, count) {
|
|||||||
cells.shift();
|
cells.shift();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!cells[cells.length - 1].trim()) {
|
if (cells.length > 0 && !cells[cells.length - 1].trim()) {
|
||||||
cells.pop();
|
cells.pop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -203,7 +203,7 @@ function splitCells(tableRow, count) {
|
|||||||
|
|
||||||
// First/last cell in a row cannot be empty if it has no leading/trailing pipe
|
// First/last cell in a row cannot be empty if it has no leading/trailing pipe
|
||||||
if (!cells[0].trim()) { cells.shift(); }
|
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) {
|
if (cells.length > count) {
|
||||||
cells.splice(count);
|
cells.splice(count);
|
||||||
|
@ -274,7 +274,7 @@
|
|||||||
cells.shift();
|
cells.shift();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!cells[cells.length - 1].trim()) {
|
if (cells.length > 0 && !cells[cells.length - 1].trim()) {
|
||||||
cells.pop();
|
cells.pop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
marked.min.js
vendored
2
marked.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user