Commit a87b150b authored by fat's avatar fat
Browse files

fixes #10205 Scrollspy Doesn't Support Chinese ID Targets ...

fixes #10205 Scrollspy Doesn't Support Chinese ID Targets  http://mathiasbynens.be/notes/html5-id-class
parent 71e9db41
Showing with 5 additions and 5 deletions
+5 -5
......@@ -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
......
This diff is collapsed.
This diff is collapsed.
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment