Commits

Takafumi Arakaki  committed 0abfa5a

fixed bugs in regex of CLOSED and CLOCK.

  • Participants
  • Parent commits 65d2ba8

Comments (0)

Files changed (1)

 
 
 _RE_CLOSED = re.compile(
-    'CLOSED:\s+\[(\d+)\-(\d+)\-(\d+)[^>\d]*((\d+)\:(\d+))?\]')
+    'CLOSED:\s+\[(\d+)\-(\d+)\-(\d+)[^\]\d]*((\d+)\:(\d+))?\]')
 def find_closed(line):
     """
     Find CLOSED from given string.
 
 _RE_CLOCK = re.compile(
     'CLOCK:\s+'
-    '\[(\d+)\-(\d+)\-(\d+)[^>\d]*(\d+)\:(\d+)\]--'
-    '\[(\d+)\-(\d+)\-(\d+)[^>\d]*(\d+)\:(\d+)\]\s+=>\s+(\d+)\:(\d+)'
+    '\[(\d+)\-(\d+)\-(\d+)[^\]\d]*(\d+)\:(\d+)\]--'
+    '\[(\d+)\-(\d+)\-(\d+)[^\]\d]*(\d+)\:(\d+)\]\s+=>\s+(\d+)\:(\d+)'
     )
 def find_clock(line):
     """