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 Oct 8, 2015
1 parent 848224e commit e3f8d9d
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 @@ -189,7 +189,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 e3f8d9d

Please sign in to comment.