MCPcopy Create free account
hub / github.com/alignoth/alignoth / y

Function y

resources/vega-embed.min.js:1468–1488  ·  view source on GitHub ↗
(e, t)

Source from the content-addressed store, hash-verified

1466 .map((e) => y(e, t))
1467 .join(" "),
1468 y = (e, t) => {
1469 const n = t.loose ? s[l.TILDELOOSE] : s[l.TILDE];
1470 return e.replace(n, (t, n, r, i, a) => {
1471 let s;
1472 return (
1473 o("tilde", e, t, n, r, i, a),
1474 v(n)
1475 ? (s = "")
1476 : v(r)
1477 ? (s = `>=${n}.0.0 <${+n + 1}.0.0-0`)
1478 : v(i)
1479 ? (s = `>=${n}.${r}.0 <${n}.${+r + 1}.0-0`)
1480 : a
1481 ? (o("replaceTilde pr", a),
1482 (s = `>=${n}.${r}.${i}-${a} <${n}.${+r + 1}.0-0`))
1483 : (s = `>=${n}.${r}.${i} <${n}.${+r + 1}.0-0`),
1484 o("tilde return", s),
1485 s
1486 );
1487 });
1488 },
1489 w = (e, t) =>
1490 e
1491 .trim()

Callers 1

bFunction · 0.70

Calls 2

oFunction · 0.70
vFunction · 0.70

Tested by

no test coverage detected