Skip to content
This repository has been archived by the owner on Apr 23, 2018. It is now read-only.

search issue #54

Open
JHSPHshe opened this issue Feb 13, 2017 · 5 comments
Open

search issue #54

JHSPHshe opened this issue Feb 13, 2017 · 5 comments

Comments

@JHSPHshe
Copy link

JHSPHshe commented Feb 13, 2017

It works just fine few days ago, but now when i search word from middle sentence, i can only search one word instead of few word with space separator.

for example:

Atlanta Falcons
New Orleans Saints
Tampa Bay Buccaneers

If i search from beginning, everything works fine, but if i search "Bay Bucc" , it will show me 'no result match "Bay Bucc".

Any idea? thanks.

We use 1.1.0 chosen.jquery.min.js, in every browser

@allandesa
Copy link

Hi there,
Search for winnow_resulsts and change the regex expression, remove the '^'+

Change "new RegExp('^' + searchText.replace(/[-[]{}()+?.,\^$|#\s]/g, "\$&"), 'i'), " to new RegExp(searchText.replace(/[-[]{}()+?.,\^$|#\s]/g, "\$&"), 'i'),

@JHSPHshe
Copy link
Author

which file i should going to search for? i search string "'^'" in 1.1.0/chosen.jquery.min.js file, but can not find the expression you mention above, any idea? thanks.

@julesjanssen
Copy link
Owner

julesjanssen commented Feb 14, 2017

See https://github.com/julesjanssen/chosen/blob/master/Source/chosen.js#L618-L619
But it looks like you're looking at the original jQuery version, not this MooTools fork.

@JHSPHshe
Copy link
Author

Yes, we use original JQuery version (1.1.0 chosen.jquery.min.js), if so,how to solve the issue? thanks.

@julesjanssen
Copy link
Owner

No idea, but please have a look at that version's repository & documentation here: https://github.com/harvesthq/chosen

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants