Skip to content

fix: strip timestamps from entity names in task lines with HH:MM prefix#9

Merged
bartvw merged 1 commit intomainfrom
claude/fix-convert-timestamp-parsing-AUUUm
Apr 13, 2026
Merged

fix: strip timestamps from entity names in task lines with HH:MM prefix#9
bartvw merged 1 commit intomainfrom
claude/fix-convert-timestamp-parsing-AUUUm

Conversation

@bartvw
Copy link
Copy Markdown
Owner

@bartvw bartvw commented Apr 12, 2026

Lines like "- [ ] - 12:30 - [[some text]] #idea" caused the timestamp
to appear in the converted entity name (e.g. "- 1230 - some text")
because marker stripping in deriveTitle and hasMeaningfulContent did
only a single pass, leaving a trailing "- " and the timestamp intact.

Fix: make list/task marker stripping iterative in deriveTitle,
deriveText, and hasMeaningfulContent so that separators like the "- "
after "[ ] " are also removed. Then strip a leading HH:MM timestamp
(optionally followed by a separator dash) from the derived title and
from the meaningful-content check so that timestamps used as time
annotations never become part of the entity name.

Unresolved-wikilink (Case 1) detection for this line format already
worked correctly; the bug was exclusively in the Case 2 (full-line)
code path used when the wikilink is already resolved.

https://claude.ai/code/session_01BZTFhMA7o6caXwAW5yDaYH

Lines like "- [ ] - 12:30 - [[some text]] #idea" caused the timestamp
to appear in the converted entity name (e.g. "- 1230 - some text")
because marker stripping in deriveTitle and hasMeaningfulContent did
only a single pass, leaving a trailing "- " and the timestamp intact.

Fix: make list/task marker stripping iterative in deriveTitle,
deriveText, and hasMeaningfulContent so that separators like the "- "
after "[ ] " are also removed. Then strip a leading HH:MM timestamp
(optionally followed by a separator dash) from the derived title and
from the meaningful-content check so that timestamps used as time
annotations never become part of the entity name.

Unresolved-wikilink (Case 1) detection for this line format already
worked correctly; the bug was exclusively in the Case 2 (full-line)
code path used when the wikilink is already resolved.

https://claude.ai/code/session_01BZTFhMA7o6caXwAW5yDaYH
@bartvw bartvw merged commit ab2c81c into main Apr 13, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants