lib/atp/ast/builder.rb in atp-0.6.0 vs lib/atp/ast/builder.rb in atp-0.7.0

- old
+ new

@@ -140,12 +140,12 @@ key, value = key.first[0], key.first[1] end key = key.to_s.downcase.to_sym # Represent all condition values as lower cased strings internally if value.is_a?(Array) - value = value.map { |v| v.to_s.downcase } + value = value.map { |v| (v[0] == '$') ? v.to_s : v.to_s.downcase } else - value = value.to_s.downcase + value = (value[0] == '$') ? value.to_s : value.to_s.downcase end context[:conditions] << { key => value } case key when :if_enabled, :enabled, :enable_flag, :enable, :if_enable node = flow_flag(value, true, node)