module Eraser::SpaceSeparators

Constants

REGEX

u0009 Tab u000B Vertical Tab (‘v’) u000C Form Feed (‘f’) u0020 Space (‘ ‘) u00A0 No-break space uFEFF Byte Order Mark u1680 Ogham Space Mark u180E Mongolian Vowel Separator u2000 En Quad u2001 Em Quad u2002 En Space u2003 Em Space u2004 Three-per-em space u2005 Four-per-em space u2006 Six-per-em space u2007 Figure space u2008 Punctuation space u2009 Thin space u200A Hair space u202F Narrow no-break space u205F Medium mathematical space u3000 Ideographic space

Public Class Methods

erase(value, replace_with = " ") click to toggle source
# File lib/eraser/space_separators.rb, line 28
def self.erase(value, replace_with = " ")
  value.gsub REGEX, replace_with
end