Subject: Re: bug#5549: 23.1; icalender-export-region fails to recognize times like 0:30

From: Glenn Morris <[email-masked]>
Date: Wed, 10 Feb 2010 02:32:08 -0500

karme wrote:

> example ~/diary file:
> Feb 9, 2010 0:15-0:30 test
> Feb 9, 2010 1:00-1:30 test
>
> M-x mark-whole-buffer
> M-x icalender-export-region /tmp/test <RET>
> M-x find-file /tmp/test:

[first time is not understood]

icalendar.el seems to use a slightly odd regexp for times, namely:

0?\\([1-9][0-9]?:[0-9][0-9]

This isn't going to match a time like "0:15".

Why not just [0-9][0-9]?:[0-9][0-9]   ?