(detail: string | undefined)
| 138 | |
| 139 | /** The count of a repeat entry, undefined for an ordinary one. */ |
| 140 | export function repeatCount(detail: string | undefined): number | undefined { |
| 141 | const match = /^(\d+) identical entries in this session\b/.exec(detail ?? ''); |
| 142 | return match ? Number(match[1]) : undefined; |
| 143 | } |
| 144 | |
| 145 | /** The detail of the entry a repeat count stands for; an ordinary detail as it is. */ |
| 146 | export function countedDetail(detail: string | undefined): string | undefined { |
no outgoing calls
no test coverage detected