lib/nanoc/cli/stream_cleaners/utf8.rb in nanoc-4.8.19 vs lib/nanoc/cli/stream_cleaners/utf8.rb in nanoc-4.9.0
- old
+ new
@@ -4,12 +4,12 @@
# Simplifies output by replacing UTF-8 characters with their ASCII decompositions.
#
# @api private
class UTF8 < Abstract
# @see Nanoc::CLI::StreamCleaners::Abstract#clean
- def clean(s)
+ def clean(str)
# FIXME: this decomposition is not generally usable
- s
+ str
.unicode_normalize(:nfkd)
.tr('─┼“”‘’', '-+""\'\'')
.gsub('©', '(c)')
end
end