lib/imw/parsers/regexp_parser.rb in imw-0.2.17 vs lib/imw/parsers/regexp_parser.rb in imw-0.2.18

- old
+ new

@@ -54,10 +54,10 @@ super options end def parse_line line match_data = regexp.match(line.chomp) - returning({}) do |hsh| + {}.tap do |hsh| if match_data match_data.captures.each_with_index do |capture, index| hsh[fields[index]] = capture end else