MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / Y

Function Y

web/marked.min.js:481–499  ·  view source on GitHub ↗
(l, e)

Source from the content-addressed store, hash-verified

479 return l;
480 }
481 function Y(l, e) {
482 let t = l.replace(m.findPipe, (i, r, o) => {
483 let a = !1,
484 c = r;
485 for (; --c >= 0 && o[c] === "\\"; ) a = !a;
486 return a ? "|" : " |";
487 }),
488 n = t.split(m.splitPipe),
489 s = 0;
490 if (
491 (n[0].trim() || n.shift(),
492 n.length > 0 && !n.at(-1)?.trim() && n.pop(),
493 e)
494 )
495 if (n.length > e) n.splice(e);
496 else for (; n.length < e; ) n.push("");
497 for (; s < n.length; s++) n[s] = n[s].trim().replace(m.slashPipe, "|");
498 return n;
499 }
500 function A(l, e, t) {
501 let n = l.length;
502 if (n === 0) return "";

Callers 1

tableMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected