mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	bug fixed
This commit is contained in:
		
							
								
								
									
										2
									
								
								public/vendor/plugins/autolink/autolink.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								public/vendor/plugins/autolink/autolink.js
									
									
									
									
										vendored
									
									
								
							@@ -26,7 +26,7 @@
 | 
			
		||||
        re.lastIndex = 0;
 | 
			
		||||
        var results = re.exec(node.textContent);
 | 
			
		||||
        if(results !== null) {
 | 
			
		||||
            if($(node).parents().filter('pre>code').length === 0) {
 | 
			
		||||
            if($(node).parents().filter('code').length === 0) {
 | 
			
		||||
                $(node).replaceWith(
 | 
			
		||||
                    $('<span />').html(
 | 
			
		||||
                        node.nodeValue.replace(re, '<a href="$1">$1</a>')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user