mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-14 18:42:30 +03:00
make case lookahead case insensitive
This commit is contained in:
Vendored
+2
-1
@@ -35,7 +35,8 @@
|
|||||||
constructor: Typeahead
|
constructor: Typeahead
|
||||||
|
|
||||||
, matcher: function (item, query) {
|
, matcher: function (item, query) {
|
||||||
return ~item.indexOf(query)
|
// ;_; http://jsperf.com/asdfdfasdfa
|
||||||
|
return ~item.toLowerCase().indexOf(query.toLowerCase())
|
||||||
}
|
}
|
||||||
|
|
||||||
, select: function () {
|
, select: function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user