Sha256: f4ee65b31575b1c4ccf22cdb8d1b3eb45458fde63c156c6c123ff17f9827b2c3
Contents?: true
Size: 461 Bytes
Versions: 28
Compression:
Stored size: 461 Bytes
Contents
# frozen_string_literal: true module Nanoc::CLI::StreamCleaners # Simplifies output by replacing UTF-8 characters with their ASCII decompositions. # # @api private class UTF8 < Abstract # @see Nanoc::CLI::StreamCleaners::Abstract#clean def clean(str) # FIXME: this decomposition is not generally usable str .unicode_normalize(:nfkd) .tr('─┼“”‘’', '-+""\'\'') .gsub('©', '(c)') end end end
Version data entries
28 entries across 28 versions & 1 rubygems