mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-28 02:00:23 +00:00
make case lookahead case insensitive
This commit is contained in:
parent
d3817cf466
commit
4fe11342d0
1 changed files with 2 additions and 1 deletions
3
js/bootstrap-typeahead.js
vendored
3
js/bootstrap-typeahead.js
vendored
|
|
@ -35,7 +35,8 @@
|
|||
constructor: Typeahead
|
||||
|
||||
, matcher: function (item, query) {
|
||||
return ~item.indexOf(query)
|
||||
// ;_; http://jsperf.com/asdfdfasdfa
|
||||
return ~item.toLowerCase().indexOf(query.toLowerCase())
|
||||
}
|
||||
|
||||
, select: function () {
|
||||
|
|
|
|||
Loading…
Reference in a new issue