Module: Mensa::Scope::Helper

Defined in:
app/tables/mensa/scope.rb

Class Method Summary collapse

Class Method Details

.normalize(query) ⇒ Object



87
88
89
# File 'app/tables/mensa/scope.rb', line 87

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