Sha256: 38f5571f15c0de6ef8b19d569a22c063ab44d04cd28cf60f212eeda27898c667
Contents?: true
Size: 168 Bytes
Versions: 3
Compression:
Stored size: 168 Bytes
Contents
module DiacriticsFu def self.escape(str) ActiveSupport::Multibyte::Chars.new(str).normalize(:d).split(//u).reject { |e| e.wrapped_string[0] > 128 }.join end end
Version data entries
3 entries across 3 versions & 2 rubygems