MCPcopy Create free account
hub / github.com/massCodeIO/massCode / hasAttachmentReferences

Function hasAttachmentReferences

src/main/import/notes/obsidian.ts:131–136  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

129}
130
131function hasAttachmentReferences(content: string): boolean {
132 return (
133 /!\[\[[^\]]+\]\]/.test(content)
134 || /!\[[^\]]*\]\((?!https?:\/\/|data:|#)[^)]+\)/i.test(content)
135 )
136}
137
138export function parseObsidianMarkdownFiles(
139 files: ImportFile[],

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected