Sha256: a9402cc253e8f071775d69a0f36d917d082456f5bfbb230fb6b10b1e8ef513d9
Contents?: true
Size: 457 Bytes
Versions: 25
Compression:
Stored size: 457 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(s) # FIXME: this decomposition is not generally usable s .unicode_normalize(:nfkd) .tr('─┼“”‘’', '-+""\'\'') .gsub('©', '(c)') end end end
Version data entries
25 entries across 25 versions & 1 rubygems