0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-19 16:54:24 +01:00

make case lookahead case insensitive

This commit is contained in:
Jacob Thornton 2012-01-21 21:46:47 -08:00
parent d3817cf466
commit 4fe11342d0

View File

@ -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 () {