MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / embed_target_matches

Function embed_target_matches

scripts/write_obsidian_note.py:70–74  ·  view source on GitHub ↗
(target: str, expected_relative: str)

Source from the content-addressed store, hash-verified

68
69
70def embed_target_matches(target: str, expected_relative: str) -> bool:
71 normalized = target.strip().strip("<>").split("|", 1)[0]
72 if normalized == expected_relative:
73 return True
74 return normalized.endswith(f"/{expected_relative}")
75
76
77def note_references_image_embed(note_text: str, expected_relative: str) -> bool:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected