MCPcopy Create free account
hub / github.com/OneNoteDev/WebClipper / countPageRange

Function countPageRange

src/scripts/stringUtils.ts:96–104  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 1

parsePageRangeFunction · 0.85

Tested by

no test coverage detected