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

Version Path
thbar-diacritics_fu-1.0.2 lib/diacritics_fu/new_escaper_kcode_utf8.rb
thbar-diacritics_fu-1.0.3 lib/diacritics_fu/new_escaper_kcode_utf8.rb
diacritics_fu-1.0.3 lib/diacritics_fu/new_escaper_kcode_utf8.rb