MCPcopy Create free account
hub / github.com/backnotprop/plannotator / isSourceSaveFilePath

Function isSourceSaveFilePath

packages/shared/source-save.ts:98–100  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

96export const SOURCE_SAVE_FILE_REGEX = /\.(md|mdx|txt)$/i;
97
98export function isSourceSaveFilePath(filePath: string): boolean {
99 return SOURCE_SAVE_FILE_REGEX.test(filePath);
100}
101
102export function getSourceSaveLanguage(filePath: string): SourceSaveLanguage | null {
103 const lower = filePath.toLowerCase();

Calls

no outgoing calls

Tested by

no test coverage detected