Skip to content


Add an option to disable search on separate words #821

wants to merge 2 commits into from

3 participants


When search regex on the whole option text fails, chosen tries to split words and rerun regex on each of the option text words.
I added an option to disable this behaviour when not necessary, that you may find interesting.

Are one line conditions wanted? I think JSLint (and cake and myself) favor the block style writing of "if" for non minified js.


it looks like you are modifying the line endings in the CoffeeScript source. Please revert it. It should not be changed to CRLF


And btw, the non-minified Js is simply the one compiled by CoffeeScript. No change should be done in it manually


Closing in favor of #824

@pfiller pfiller closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 13, 2012
  1. @Goutet

    Add a parameter to allow searching in the beginning of options text o…

    Goutet committed
    …nly, and not the beginning of each word
Commits on Sep 19, 2012
  1. @Goutet

    Add a parameter to enable/disable search in each word if first regex …

    Goutet committed
    …fails. Some one line if are expanded with my cake build
Something went wrong with that request. Please try again.