lib/csl/locale/term.rb in csl-1.0.0.pre13 vs lib/csl/locale/term.rb in csl-1.0.0.pre14

- old
+ new

@@ -24,9 +24,11 @@ # @return [Term, nil] the first term that matches the query def lookup(name, options = {}) options = Term.specialize(options) options[:name] = name = name.to_s + # TODO default to long form + term = registry[name].detect { |t| t.match?(options) } return term unless term.nil? && options.delete(:'gender-form') registry[name].detect { |t| t.match?(options) } end \ No newline at end of file