lib/citeproc/ruby/format.rb in citeproc-ruby-1.1.11 vs lib/citeproc/ruby/format.rb in citeproc-ruby-1.1.12

- old
+ new

@@ -196,10 +196,10 @@ def close_inner_quote locale && locale.t('close-inner-quote') || "'" end def split_closing_quotes(string) - string.split(/([#{close_inner_quote}#{close_quote}]+)$/, 2) + string.split(/((#{Regexp.quote(close_inner_quote)}|#{Regexp.quote(close_quote)})+)$/, 2) end def apply_quotes output.replace locale.quote(output, escape_quotes?) end