Method: Sanitizer.remove_excessive_spaces

Defined in:
lib/utils/sanitizer.rb

.remove_excessive_spaces(text) ⇒ Object

Remove sequences of more than two spaces and replace with one space



8
9
10
# File 'lib/utils/sanitizer.rb', line 8

def self.remove_excessive_spaces(text)
  text.gsub(/ {3,}/, ' ')
end