mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	bug fixed
This commit is contained in:
		@@ -5,11 +5,13 @@ jQuery.fn.autolink = function() {
 | 
				
			|||||||
		.each(function() {
 | 
							.each(function() {
 | 
				
			||||||
			$(this).each(function() {
 | 
								$(this).each(function() {
 | 
				
			||||||
				if (re.test($(this).text()))
 | 
									if (re.test($(this).text()))
 | 
				
			||||||
					$(this).replaceWith(
 | 
										if($(this).parents().filter('code').length === 0) {
 | 
				
			||||||
						$("<span />").html(
 | 
											$(this).replaceWith(
 | 
				
			||||||
							this.nodeValue.replace(re, "<a href='$1'>$1</a>")
 | 
												$("<span />").html(
 | 
				
			||||||
						)
 | 
													this.nodeValue.replace(re, "<a href='$1'>$1</a>")
 | 
				
			||||||
					);
 | 
												)
 | 
				
			||||||
 | 
											);
 | 
				
			||||||
 | 
										};
 | 
				
			||||||
			});
 | 
								});
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
		Reference in New Issue
	
	Block a user