import Ember from 'ember';

const { trim } = Ember.$;

export function cleanQuery(query) {
  return trim(query).replace(/[\-,?~!@#$%&*+\-'="]/, '');
}

import Ember from 'ember';

const { trim } = Ember.$;

export function cleanQuery(query) {
  return trim(query).replace(/[\-,?~!@#$%&*+\-'="]/, ' ');
}

Replace bad chars with a space when cleaning up queries
Replace bad chars with a space when cleaning up queries

This makes searches which contain these characters still work.  We
could probably just remove this cleanQuery entirely, but that requires
more investigation
