From a87b150bc771e3bc6e62fd2ca8a4ea938c48e28c Mon Sep 17 00:00:00 2001 From: fat Date: Mon, 23 Dec 2013 22:08:43 -0800 Subject: fixes #10205 Scrollspy Doesn't Support Chinese ID Targets http://mathiasbynens.be/notes/html5-id-class --- js/scrollspy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') 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 -- cgit v1.2.3