Skip to content

Commit

Permalink
prevent overwrite of exact_result
Browse files Browse the repository at this point in the history
  • Loading branch information
koenpunt committed Aug 18, 2015
1 parent 77f7f54 commit 8e0f0c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coffee/lib/abstract-chosen.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class AbstractChosen
option.search_match = this.search_string_match(option.search_text, regex)
results += 1 if option.search_match and not option.group

exact_result = eregex.test option.html
exact_result = exact_result || eregex.test option.html

if option.search_match
if searchText.length
Expand Down

0 comments on commit 8e0f0c0

Please sign in to comment.