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

Function formatExpiryInput

static/js/payment.js:370–376  ·  view source on GitHub ↗
(month, year)

Source from the content-addressed store, hash-verified

368}
369
370function formatExpiryInput(month, year) {
371 const mm = normalizeMonth(month);
372 const rawYear = String(year || "").replace(/\D/g, "");
373 const yy = rawYear ? rawYear.slice(-2) : "";
374 if (!mm && !yy) return "";
375 return yy ? `${mm}/${yy}` : mm;
376}
377
378function parseExpiryInput(value) {
379 const raw = String(value || "").trim();

Callers 4

buildParsedSummaryFunction · 0.85
fillBillingFormFunction · 0.85
renderBatchProfilesFunction · 0.85
redeemEfunAndFillFunction · 0.85

Calls 1

normalizeMonthFunction · 0.85

Tested by

no test coverage detected