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

Function normalizeYear

static/js/payment.js:363–368  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

361}
362
363function normalizeYear(value) {
364 const digits = String(value || "").replace(/\D/g, "");
365 if (!digits) return "";
366 if (digits.length === 2) return `20${digits}`;
367 return digits.slice(0, 4);
368}
369
370function formatExpiryInput(month, year) {
371 const mm = normalizeMonth(month);

Callers 3

parseExpiryInputFunction · 0.85
parseCardTextFunction · 0.85
normalizeTemplateDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected