lib/hash_path/part.rb in bblib-0.4.1 vs lib/hash_path/part.rb in bblib-1.0.2
- old
+ new
@@ -73,11 +73,11 @@
elsif str =~ /^\[\d+\]$/
str.uncapsulate('[').to_i
elsif str =~ /\[\-?\d+\.{2,3}\-?\d+\]/
Range.new(*str.scan(/\-?\d+/).map(&:to_i))
else
- str
- end.gsub('\\.', '.')
+ str.gsub('\\.', '.')
+ end
end
end
end