Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Thornton <jacobthornton@gmail.com>2012-03-20 02:48:57 +0400
committerJacob Thornton <jacobthornton@gmail.com>2012-03-20 02:48:57 +0400
commit67f199678c6f764f2812260f42b553b22ec740f8 (patch)
tree50d0b85cede5029579fa2ed86d89546367c6b80c /docs/assets/js/bootstrap-typeahead.js
parent83a7a698939b5b4cba3c04a86befc12b9005df3d (diff)
if interval is false, do not autocycle the carousel
Diffstat (limited to 'docs/assets/js/bootstrap-typeahead.js')
-rw-r--r--docs/assets/js/bootstrap-typeahead.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/assets/js/bootstrap-typeahead.js b/docs/assets/js/bootstrap-typeahead.js
index dc2f882218..804e60dc44 100644
--- a/docs/assets/js/bootstrap-typeahead.js
+++ b/docs/assets/js/bootstrap-typeahead.js
@@ -109,7 +109,8 @@
}
, highlighter: function (item) {
- return item.replace(new RegExp('(' + this.query + ')', 'ig'), function ($1, match) {
+ var query = this.query.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&')
+ return item.replace(new RegExp('(' + query + ')', 'ig'), function ($1, match) {
return '<strong>' + match + '</strong>'
})
}