lib/embulk/guess/time_format_guess.rb in embulk-0.6.5 vs lib/embulk/guess/time_format_guess.rb in embulk-0.6.6
- old
+ new
@@ -2,11 +2,11 @@
module TimeFormatGuess
module Parts
YEAR = /[1-4][0-9]{3}/
MONTH = /10|11|12|[0 ]?[0-9]/
MONTH_NODELIM = /10|11|12|[0][0-9]/
- DAY = /[1-2][0-9]|[0 ]?[1-9]|30|31/
- DAY_NODELIM = /[1-2][0-9]|[0][1-9]|30|31/
+ DAY = /31|30|[1-2][0-9]|[0 ]?[1-9]/
+ DAY_NODELIM = /31|30|[1-2][0-9]|[0][1-9]/
HOUR = /20|21|22|23|24|1[0-9]|[0 ]?[0-9]/
HOUR_NODELIM = /20|21|22|23|24|1[0-9]|[0][0-9]/
MINUTE = SECOND = /60|[1-5][0-9]|[0 ]?[0-9]/
MINUTE_NODELIM = SECOND_NODELIM = /60|[1-5][0-9]|[0][0-9]/