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 --- dist/js/bootstrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dist/js/bootstrap.js') diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js index 3623bba59..bbe4784a2 100644 --- a/dist/js/bootstrap.js +++ b/dist/js/bootstrap.js @@ -1532,7 +1532,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery" .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