about summary refs log tree commit diff
path: root/notagain
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2019-08-15 18:20:37 +0200
committerLeah Neukirchen <leah@vuxu.org>2019-08-15 18:20:37 +0200
commit29532bc4814051a842df34c05aa74b18dcfd5dea (patch)
tree96d0823d94f4315fb5eb36e6fc171976b491c5b7 /notagain
parent24911dea0afe29ddad3e8e295eb552a179f67db7 (diff)
downloadnotyet-29532bc4814051a842df34c05aa74b18dcfd5dea.tar.gz
notyet-29532bc4814051a842df34c05aa74b18dcfd5dea.tar.xz
notyet-29532bc4814051a842df34c05aa74b18dcfd5dea.zip
use [yyyy-mm-dd] for time stamps
Diffstat (limited to 'notagain')
-rwxr-xr-xnotagain2
1 files changed, 1 insertions, 1 deletions
diff --git a/notagain b/notagain
index faa40b4..214561b 100755
--- a/notagain
+++ b/notagain
@@ -21,7 +21,7 @@ def parse(io, filename=nil)
       force = "-"  if $always
 
 # - support Rnn/P for limited repetitions?
-      if desc =~ %r{(\d\d\d\d-\d\d-\d\d)(.*)(R/P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?)}
+      if desc =~ %r{\[(\d\d\d\d-\d\d-\d\d)(?: \d\d:\d\d)?\](.*)(R/P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?)}
         date = Date.parse($1)
 
         before, mid, after = $`, $2, $'