Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #11 from Strubbl/fix-regexes
Browse files Browse the repository at this point in the history
Fix regex for detecting project, context, tag
  • Loading branch information
EpocDotFr authored May 21, 2018
2 parents f59006d + 5321ab6 commit 07a0825
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions todotxtio.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
]

todo_data_regex = re.compile('^(?:(x) )?(?:(\d{4}-\d{2}-\d{2}) )?(?:\(([A-Z])\) )?(?:(\d{4}-\d{2}-\d{2}) )?')
todo_project_regex = re.compile(' \+(\S*)')
todo_context_regex = re.compile(' @(\S*)')
todo_tag_regex = re.compile(' (\S*):(\S*)')
todo_project_regex = re.compile(' \+(\S+)')
todo_context_regex = re.compile(' @(\S+)')
todo_tag_regex = re.compile(' (\S+):([^\s\/]+)')


def from_dicts(todos):
Expand Down

0 comments on commit 07a0825

Please sign in to comment.