mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-27 00:23:41 +09:00 
			
		
		
		
	format with gofumpt (#18184)
* gofumpt -w -l . * gofumpt -w -l -extra . * Add linter * manual fix * change make fmt
This commit is contained in:
		| @@ -86,7 +86,8 @@ func createDefaultPolicy() *bluemonday.Policy { | ||||
| 	policy.AllowAttrs("class").Matching(regexp.MustCompile(`^((icon(\s+[\p{L}\p{N}_-]+)+)|(emoji))$|^([a-z][a-z0-9]{0,2})$|^` + keywordClass + `$`)).OnElements("span") | ||||
|  | ||||
| 	// Allow generally safe attributes | ||||
| 	generalSafeAttrs := []string{"abbr", "accept", "accept-charset", | ||||
| 	generalSafeAttrs := []string{ | ||||
| 		"abbr", "accept", "accept-charset", | ||||
| 		"accesskey", "action", "align", "alt", | ||||
| 		"aria-describedby", "aria-hidden", "aria-label", "aria-labelledby", | ||||
| 		"axis", "border", "cellpadding", "cellspacing", "char", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user