( match: DateNotePatternMatch, key: keyof DateNotePatternMatch, value: number )
| 319 | } |
| 320 | |
| 321 | function mergeCapture( |
| 322 | match: DateNotePatternMatch, |
| 323 | key: keyof DateNotePatternMatch, |
| 324 | value: number |
| 325 | ): boolean { |
| 326 | if (match[key] !== undefined && match[key] !== value) return false |
| 327 | match[key] = value |
| 328 | return true |
| 329 | } |
| 330 | |
| 331 | function readTwoDigitYear(value: string): number { |
| 332 | const n = Number(value) |
no outgoing calls
no test coverage detected