Subject: | Long year captures short year by mistake |
https://github.com/maros/DateTime-Format-CLDR/blob/master/lib/DateTime/Format/CLDR.pm#L28
Because short year \d{2} is not excluded from range the parser incorrectly matches
04-01-15
to pattern
yyyy-MM-dd
and returns it as year 0004 instead of fail.
Module should follow rules in:
http://search.cpan.org/~drolsky/DateTime-1.20/lib/DateTime.pm#CLDR_Patterns
y and y{3,} - long form
yy - special case of short form
u{1,} - same as y but without short form exception