lib/anyway/auto_cast.rb in anyway_config-2.2.2 vs lib/anyway/auto_cast.rb in anyway_config-2.2.3
- old
+ new
@@ -2,11 +2,11 @@
module Anyway
module AutoCast
# Regexp to detect array values
# Array value is a values that contains at least one comma
- # and doesn't start/end with quote
- ARRAY_RXP = /\A[^'"].*\s*,\s*.*[^'"]\z/
+ # and doesn't start/end with quote or curly braces
+ ARRAY_RXP = /\A[^'"{].*\s*,\s*.*[^'"}]\z/
class << self
def call(val)
return val unless val.is_a?(::Hash) || val.is_a?(::String)