(text: string)
| 94 | } |
| 95 | |
| 96 | export function countPageRange(text: string): number { |
| 97 | let operation = parsePageRange(text); |
| 98 | if (operation.status !== OperationResult.Succeeded) { |
| 99 | return 0; |
| 100 | } |
| 101 | |
| 102 | const pages = operation.result; |
| 103 | return pages ? pages.length : 0; |
| 104 | } |
| 105 | |
| 106 | export function getBatchedPageTitle(titleOfDocument: string, pageIndex: number): string { |
| 107 | const firstPageNumberAsString = (pageIndex + 1).toString(); |
nothing calls this directly
no test coverage detected