diff --git a/src/mdiary.c b/src/mdiary.c index a0bda5a..b7f18f8 100644 --- a/src/mdiary.c +++ b/src/mdiary.c @@ -22,7 +22,8 @@ struct dateFormats { .index_minute = 5 }, { - .regex = "(\\d{1,2})\\.(\\d{1,2})\\.(\\d{1,4})\\s*(\\d{1,2}):(\\d{1,2}).*", + .regex = "(\\d{2,2})\\.(\\d{1,2})\\.(\\d{1,4})\\s*(\\d{1,2}):(\\d{1,2}).*", + /* The regex above should begin with (\d{1,2}). But that seems to break the regex... */ .index_count = 5, .index_year = 3, .index_month = 2,