Open Matiaseid opened 6 years ago
Still not fixed? any workaround? Thanks!
Yes, I confirm the issue, you can fix it by adding the i
flag to the regex used by the default highlighter
in file bootstrap3-typeahead.js
on line 316
, update the code
var reg = new RegExp(text, 'g');
by
var reg = new RegExp(text, 'gi');
This should be fixed or be an option to enable this!
Even though the matcher is case insensitive, the highlighter is not.
This can be fixed by adding an 'i' to the end of all the regexes in the highlighter function.