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

Function normalizeMonth

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

Source from the content-addressed store, hash-verified

355}
356
357function normalizeMonth(value) {
358 const digits = String(value || "").replace(/\D/g, "");
359 if (!digits) return "";
360 return digits.slice(0, 2).padStart(2, "0");
361}
362
363function normalizeYear(value) {
364 const digits = String(value || "").replace(/\D/g, "");

Callers 4

formatExpiryInputFunction · 0.85
parseExpiryInputFunction · 0.85
parseCardTextFunction · 0.85
normalizeTemplateDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected