mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	modules/base: add RenderCommitMessage with XSS-safe and special links
- update russian locale
This commit is contained in:
		@@ -103,7 +103,7 @@ var (
 | 
			
		||||
	MentionPattern     = regexp.MustCompile(`@[0-9a-zA-Z_]{1,}`)
 | 
			
		||||
	commitPattern      = regexp.MustCompile(`(\s|^)https?.*commit/[0-9a-zA-Z]+(#+[0-9a-zA-Z-]*)?`)
 | 
			
		||||
	issueFullPattern   = regexp.MustCompile(`(\s|^)https?.*issues/[0-9]+(#+[0-9a-zA-Z-]*)?`)
 | 
			
		||||
	issueIndexPattern  = regexp.MustCompile(`#[0-9]+`)
 | 
			
		||||
	issueIndexPattern  = regexp.MustCompile(`( |^)#[0-9]+`)
 | 
			
		||||
	sha1CurrentPattern = regexp.MustCompile(`\b[0-9a-f]{40}\b`)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user