org-alert icon indicating copy to clipboard operation
org-alert copied to clipboard

`org-alert-time-match-string` is too permissive

Open jwiegley opened this issue 1 year ago • 2 comments

Hello, I've found that org-alert-time-match-string is too lax in what it parses. I have lots of date stamps elsewhere in my properties that it thinks are associated with the scheduling time. What works better for me is to constrain it as follows:

"\\(?:SCHEDULED\\|DEADLINE\\):\\s-+<[^>]+\\([0-9]\\{2\\}:[0-9]\\{2\\}\\).*>"

This way it only checks the time that immediately follows SCHEDULED or DEADLINE, and only the time within that timestamp.

jwiegley avatar Oct 09 '24 17:10 jwiegley