@podlite/markdown 0.0.57 → 0.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.cjs +1 -1
- package/lib/index.cjs.map +1 -1
- package/lib/index.esm.js +2 -2
- package/lib/index.esm.js.map +1 -1
- package/package.json +2 -2
package/lib/index.esm.js
CHANGED
|
@@ -32624,8 +32624,8 @@ var trimEdgeEmpty = (cells) => {
|
|
|
32624
32624
|
end--;
|
|
32625
32625
|
return cells.slice(start, end);
|
|
32626
32626
|
};
|
|
32627
|
-
var splitLineByPipe = (line) => trimEdgeEmpty(line.split(
|
|
32628
|
-
var splitLineByPlus = (line) => trimEdgeEmpty(line.split(
|
|
32627
|
+
var splitLineByPipe = (line) => trimEdgeEmpty(line.split(/(?<=^|\s)\|(?=\s|$)/).map((c) => c.trim()));
|
|
32628
|
+
var splitLineByPlus = (line) => trimEdgeEmpty(line.split(/(?<=^|\s)\+(?=\s|$)/).map((c) => c.trim()));
|
|
32629
32629
|
var splitLineByWhitespace = (line) => line.trim().split(/\s{2,}/).filter((c) => c !== "");
|
|
32630
32630
|
var splitLineCells = (line) => {
|
|
32631
32631
|
const trimmed = line.trim();
|