(value)
| 361 | } |
| 362 | |
| 363 | function 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 | |
| 370 | function formatExpiryInput(month, year) { |
| 371 | const mm = normalizeMonth(month); |
no outgoing calls
no test coverage detected