lib/attentive/entities/core/number/float/negative.rb in attentive-0.2.0 vs lib/attentive/entities/core/number/float/negative.rb in attentive-0.3.0

- old
+ new

@@ -1,6 +1,6 @@ require "attentive/entity" -require "bigdecimal" -Attentive::Entity.define "core.number.float.negative", %q{(?<float>\-[\d,]+\.\d+)} do |match| - BigDecimal.new(match["float"].gsub(",", "")) +Attentive::Entity.define "core.number.float.negative", "{{float:core.number.float}}", published: false do |match| + nomatch! if match["float"] >= 0 + match["float"] end