EpocDotFr / todotxtio

Simple Python module to parse, manipulate and write Todo.txt data
https://epocdotfr.github.io/todotxtio/
Other
15 stars 9 forks source link

Fix regex for detecting project, context, tag #11

Closed Strubbl closed 6 years ago

Strubbl commented 6 years ago

This commit fixes the regex for detection of projects, contexts and tags in the todo lines. It switches from "zero or more" quantifier to "one or more" quantifier, because otherwise empty projects or contexts would be allowed and something like "test:" would be a tag.

Strubbl commented 6 years ago

Tag regex is still not very good. I try to find a better solution

Strubbl commented 6 years ago

With the latest commit, URLs are not matched as tags anymore.

EpocDotFr commented 6 years ago

Thank you for you PR! I'll release a new version of todotxtio on PyPI soon.

Edit: released 0.2.3 https://github.com/EpocDotFr/todotxtio/releases/tag/todotxtio-0.2.3

Edit 2: PyPI package updated.