Skip to content

Commit

Permalink
Add back highlightRegex.
Browse files Browse the repository at this point in the history
  • Loading branch information
JJJ committed Jul 22, 2020
1 parent 8093522 commit ae6fa13
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 @@ -207,7 +207,7 @@ class AbstractChosen

if option.search_match
if query.length and not searchMatchFromValue
startpos = search_match.index
startpos = search_match.index highlightRegex
prefix = text.slice(0, startpos)
fix = text.slice(startpos, startpos + query.length)
suffix = text.slice(startpos + query.length)
Expand Down

0 comments on commit ae6fa13

Please sign in to comment.