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

Function normalizeExpiryInputForTyping

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

Source from the content-addressed store, hash-verified

403}
404
405function normalizeExpiryInputForTyping(value) {
406 const digits = String(value || "").replace(/\D/g, "").slice(0, 6);
407 if (!digits) return "";
408 if (digits.length <= 2) return digits;
409 return `${digits.slice(0, 2)}/${digits.slice(2)}`;
410}
411
412function parseCardText(rawText) {
413 const text = String(rawText || "").trim();

Callers 1

bindBillingEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected