lib/cfndsl/JSONable.rb in cfndsl-0.0.8 vs lib/cfndsl/JSONable.rb in cfndsl-0.0.9
- old
+ new
@@ -71,10 +71,10 @@
string.scan( /(.*?)(%(%|\{(\w+)\})|\z)/m ) do |x,y|
array.push $1 if $1 && $1 != ""
if( $3 == '%' ) then
array.push '%'
elsif( $3 ) then
- array.push hash[ $4 ] || Ref( $4 )
+ array.push hash[ $4 ] || hash[ $4.to_sym ] || Ref( $4 )
end
end
else
string.scan( /(.*?)(%(%|\d+)|\z)/m ) do |x,y|
array.push $1 if $1 && $1 != ""