Module: Textacular::Helper

Defined in:
lib/textacular.rb

Class Method Summary collapse

Class Method Details

.normalize(query) ⇒ Object



179
180
181
# File 'lib/textacular.rb', line 179

def normalize(query)
  query.to_s.gsub(/\s(?![\&\!\|])/, '\\\\ ')
end