(raw)
| 1654 | } |
| 1655 | |
| 1656 | function 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 | |
| 1663 | function normalizeEfunCode(raw) { |
| 1664 | const compact = String(raw || "") |
no outgoing calls
no test coverage detected