aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/bootstrap-typeahead.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/bootstrap-typeahead.js b/js/bootstrap-typeahead.js
index b4957c3f6..16539fefb 100644
--- a/js/bootstrap-typeahead.js
+++ b/js/bootstrap-typeahead.js
@@ -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 () {