lib/citeproc/abbreviate.rb in citeproc-1.0.0 vs lib/citeproc/abbreviate.rb in citeproc-1.0.1
- old
+ new
@@ -22,10 +22,14 @@
def abbreviate(*arguments)
raise ArgumentError, "wrong number of arguments (#{arguments.length} for 2..3)" unless
(2..3).include?(arguments.length)
arguments.unshift(namespace || :default) if arguments.length < 3
- @abbreviations.deep_fetch(*arguments)
+
+ arguments[0] = arguments[0].to_sym
+ arguments[1] = arguments[1].to_sym
+
+ abbreviations.deep_fetch(*arguments)
end
alias abbrev abbreviate
end
end