Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.

Commit

Permalink
Fix regex bug affecting headings which included both priorities and l…
Browse files Browse the repository at this point in the history
…inks
  • Loading branch information
bordercore committed Mar 31, 2014
1 parent d49d2cf commit d43dac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyOrgMode.py
Expand Up @@ -456,7 +456,7 @@ def _treat(self,current,line):
re_todos += todo_keyword
re_todos += ")?\s*"
regexp_string += re_todos
regexp_string += "(\[.*\])?\s*(.*)$"
regexp_string += "(\[.*?\])?\s*(.*)$"
self.regexp = re.compile(regexp_string)
heading = self.regexp.findall(line)
if heading: # We have a heading
Expand Down

0 comments on commit d43dac9

Please sign in to comment.