1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-07-30 18:30:30 +02:00

check that href id's are followed by valid char – fixes #10044

This commit is contained in:
fat
2013-12-18 21:14:01 -08:00
parent 87727370e0
commit 22f9767714
3 changed files with 3 additions and 3 deletions

View File

@@ -95,7 +95,7 @@
if (!selector) {
selector = $this.attr('href')
selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
}
var $parent = selector && $(selector)