lib/embulk/guess/time_format_guess.rb in embulk-0.6.10 vs lib/embulk/guess/time_format_guess.rb in embulk-0.6.11

- old
+ new

@@ -194,47 +194,45 @@ if dm = (/^#{YMD}(?<rest>.*?)$/.match(text) or /^#{YMD_NODELIM}(?<rest>.*?)$/.match(text)) date_delim = dm["date_delim"] rescue "" parts << :year part_options << nil - delimiters << date_delim + delimiters << date_delim parts << :month part_options << part_heading_option(dm["month"]) - delimiters << date_delim + delimiters << date_delim parts << :day part_options << part_heading_option(dm["day"]) elsif dm = (/^#{MDY}(?<rest>.*?)$/.match(text) or /^#{MDY_NODELIM}(?<rest>.*?)$/.match(text)) date_delim = dm["date_delim"] rescue "" parts << :month part_options << part_heading_option(dm["month"]) - delimiters << date_delim + delimiters << date_delim parts << :day part_options << part_heading_option(dm["day"]) - delimiters << date_delim + delimiters << date_delim parts << :year part_options << nil - delimiters << date_delim elsif dm = (/^#{DMY}(?<rest>.*?)$/.match(text) or /^#{DMY_NODELIM}(?<rest>.*?)$/.match(text)) date_delim = dm["date_delim"] rescue "" parts << :day part_options << part_heading_option(dm["day"]) - delimiters << date_delim + delimiters << date_delim parts << :month part_options << part_heading_option(dm["month"]) - delimiters << date_delim + delimiters << date_delim parts << :year part_options << nil - delimiters << date_delim else date_delim = "" return nil end