harvesthq/chosen — pull request #1803 by jiahen (2014-03-03 08:04:13+00:00)
Title: additional option to ignore regex in search term and display values

We added a new option of 'ignore_regexp', which one can pass in a regexp to be replaced. For example, if I want to search for an item called 'B-99' and I pass in an ignore_regexp of /\s\-/, then the search result would accept 'B-99', 'B 99', or 'B99' because anything that matches the regexp will be replaced by "".