Skip to content

Commit 00d9fb0

Browse files
liborgmode: more liberal OrgDate Parsing
Allow missing day, because it is a reasonable human readable date form and we should probably brake no viable usecases with this. According to current formulation of the timestamp spec, a Date without Time is not valid anyway.
1 parent 2a46acd commit 00d9fb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ftplugin/orgmode/liborgmode/orgdate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from orgmode.py3compat.encode_compatibility import *
2828

2929
_DAYNAME = r"[^]>\s+0-9-]+"
30-
_DATE = r"(\d\d\d\d)-(\d\d)-(\d\d) %s" % _DAYNAME
30+
_DATE = r"(\d\d\d\d)-(\d\d)-(\d\d)(?:\s+%s)?" % _DAYNAME
3131

3232
# <2011-09-12 Mon>
3333
_DATE_REGEX = re.compile(r"<%s>" %_DATE, re.UNICODE)

0 commit comments

Comments
 (0)