MCPcopy
hub / github.com/codedogQBY/ReadAny / isCoverFileName

Function isCoverFileName

packages/core/src/sync/sync-naming.ts:70–76  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

68
69/** Heuristic: file is a cover if its extension is a known image format. */
70export function isCoverFileName(fileName: string): boolean {
71 const dot = fileName.lastIndexOf(".");
72 if (dot < 0) return false;
73 const ext = fileName.slice(dot + 1).toLowerCase();
74 if (!ext) return false;
75 return COVER_EXTENSIONS.has(ext);
76}

Callers 3

migrateBookRemoteStateFunction · 0.90
mapVirtualPathMethod · 0.90

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected