lib/csl/locale/term.rb in csl-1.4.5 vs lib/csl/locale/term.rb in csl-1.5.0

- old
+ new

@@ -439,10 +439,10 @@ when options.key?(:plural) || options.key?('plural') options[:plural] || options['plural'] when options.key?(:number) || options.key?('number') key = options[:number] || options['number'] - if key.is_a?(Fixnum) || key.to_s =~ /^[+-]?\d+$/ + if key.is_a?(Integer) || key.to_s =~ /^[+-]?\d+$/ key.to_i > 1 else !key.blank? && key.to_s =~ /^plural/i end else