lib/modl/parser/evaluator.rb in modl-0.3.8 vs lib/modl/parser/evaluator.rb in modl-0.3.9
- old
+ new
@@ -61,10 +61,10 @@
partial = false
case condition.operator
when '='
wild = value2.is_a?(String) && value2.include?('*') ? true : false
if wild
- regex = '^'
+ regex = '^'.dup
value2.each_char do |c|
regex << (c == '*' ? '.*' : c)
end
partial |= !value1.match(regex).nil?
else