mirror of https://github.com/twbs/bootstrap.git
				
				
				
			check that href id's are followed by valid char – fixes #10044
This commit is contained in:
		
							parent
							
								
									87727370e0
								
							
						
					
					
						commit
						22f9767714
					
				| 
						 | 
				
			
			@ -718,7 +718,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
 | 
			
		|||
 | 
			
		||||
    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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue