aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorfat <[email protected]>2013-12-23 22:08:43 -0800
committerfat <[email protected]>2013-12-23 22:08:43 -0800
commita87b150bc771e3bc6e62fd2ca8a4ea938c48e28c (patch)
tree2b7d34951a8b0b490fd880949f3b0e647098d5b6 /js
parent71e9db41834ae1f9873e4047033f868be5e98036 (diff)
downloadbootstrap-a87b150bc771e3bc6e62fd2ca8a4ea938c48e28c.tar.xz
bootstrap-a87b150bc771e3bc6e62fd2ca8a4ea938c48e28c.zip
fixes #10205 Scrollspy Doesn't Support Chinese ID Targets http://mathiasbynens.be/notes/html5-id-class
Diffstat (limited to 'js')
-rw-r--r--js/scrollspy.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/scrollspy.js b/js/scrollspy.js
index 3393572b7..e7c589350 100644
--- a/js/scrollspy.js
+++ b/js/scrollspy.js
@@ -47,7 +47,7 @@
.map(function () {
var $el = $(this)
var href = $el.data('target') || $el.attr('href')
- var $href = /^#\w/.test(href) && $(href)
+ var $href = /^#./.test(href) && $(href)
return ($href
&& $href.length