lib/csv2hash/coercers/yaml_coercer.rb in csv2hash-0.7.0 vs lib/csv2hash/coercers/yaml_coercer.rb in csv2hash-0.7.1

- old
+ new

@@ -22,9 +22,11 @@ def deserialize_regex! y, x = self.rules.fetch :position if y.is_a?(Array) column, matcher_string = y self.rules[:position] = [[column, Regexp.new(matcher_string)],x] + elsif y.is_a?(String) + self.rules[:position] = Regexp.new("\\A(#{y})\\z") end end def deserialize_range! begin