MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / normalizeVendorRedeemCode

Function normalizeVendorRedeemCode

static/js/payment.js:1656–1661  ·  view source on GitHub ↗
(raw)

Source from the content-addressed store, hash-verified

1654}
1655
1656function normalizeVendorRedeemCode(raw) {
1657 const compact = String(raw || "").toUpperCase().replace(/[^A-Z0-9]/g, "").slice(0, 16);
1658 if (!compact) return "";
1659 const groups = compact.match(/.{1,4}/g) || [];
1660 return groups.join("-");
1661}
1662
1663function normalizeEfunCode(raw) {
1664 const compact = String(raw || "")

Callers 3

collectVendorConfigFunction · 0.85
restoreBindModeConfigFunction · 0.85
payment.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected