MCPcopy Create free account
hub / github.com/chhoumann/quickadd / isNoteEffectivelyEmpty

Function isNoteEffectivelyEmpty

src/engine/applyTemplateToActiveNote.ts:41–43  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

39
40/** A note that only contains whitespace is treated as empty (fast path). */
41export function isNoteEffectivelyEmpty(content: string): boolean {
42 return content.trim().length === 0;
43}
44
45/**
46 * Only markdown templates can be applied to a (markdown) note: canvas and

Callers 2

applyTemplateToNoteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected