karlicoss / orgparse

Python module for reading Emacs org-mode files
https://orgparse.readthedocs.org
BSD 2-Clause "Simplified" License
371 stars 43 forks source link

Added support for open clock dates #49

Closed tbruckmaier closed 2 years ago

tbruckmaier commented 2 years ago

Recognize clock dates without an end, they were previously ignored

Regarding the regex, since the whole match about the end date is optional now (second line, starting with "--"), it needs to be wrapped in parentheses and will show up as an own match group. That's why I had to move the int() parsing to the different parts

karlicoss commented 2 years ago

nice, thanks! and a special thanks for the tests :)