Sha256: 20238cf5fc1b5ea785d6420954b9397d025583dc5401bad43114237be5b4d0ab
Contents?: true
Size: 268 Bytes
Versions: 1
Compression:
Stored size: 268 Bytes
Contents
module Permalink module Normalizations module Transliteration def self.call(input, _options = nil) ActiveSupport::Multibyte::Chars.new(input) .normalize(:kd) .gsub(/[^\x00-\x7F]/, "") .to_s end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
permalink-2.0.0 | lib/permalink/normalizations/transliteration.rb |