Fixed regex for date

This commit is contained in:
Markus Koch 2017-02-04 17:47:37 +01:00
parent 8de6eda287
commit a3c4b3164d

View File

@ -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,