mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-11 16:14:04 +02:00
make case lookahead case insensitive
This commit is contained in:
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 () {
|
||||
|
Reference in New Issue
Block a user