fix: only treat markdown headers (# followed by space) as comments, not #TODO etc
This commit is contained in:
parent
5893e8c759
commit
c3b025db26
@ -28,8 +28,9 @@ export function isHeartbeatContentEffectivelyEmpty(content: string | undefined |
|
|||||||
const trimmed = line.trim();
|
const trimmed = line.trim();
|
||||||
// Skip empty lines
|
// Skip empty lines
|
||||||
if (!trimmed) continue;
|
if (!trimmed) continue;
|
||||||
// Skip comment/header lines (markdown headers are comments for our purposes)
|
// Skip markdown header lines (# followed by space or alone, ## etc)
|
||||||
if (trimmed.startsWith("#")) continue;
|
// This intentionally does NOT skip lines like "#TODO" or "#hashtag" which might be content
|
||||||
|
if (/^#+\s*$/.test(trimmed) || /^#+\s/.test(trimmed)) continue;
|
||||||
// Found a non-empty, non-comment line - there's actionable content
|
// Found a non-empty, non-comment line - there's actionable content
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user