mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +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:
		| @@ -8,12 +8,10 @@ import ( | ||||
| 	"mvdan.cc/xurls/v2" | ||||
| ) | ||||
|  | ||||
| var ( | ||||
| 	// NOTE: All below regex matching do not perform any extra validation. | ||||
| 	// Thus a link is produced even if the linked entity does not exist. | ||||
| 	// While fast, this is also incorrect and lead to false positives. | ||||
| 	// TODO: fix invalid linking issue | ||||
| // NOTE: All below regex matching do not perform any extra validation. | ||||
| // Thus a link is produced even if the linked entity does not exist. | ||||
| // While fast, this is also incorrect and lead to false positives. | ||||
| // TODO: fix invalid linking issue | ||||
|  | ||||
| 	// LinkRegex is a regexp matching a valid link | ||||
| 	LinkRegex, _ = xurls.StrictMatchingScheme("https?://") | ||||
| ) | ||||
| // LinkRegex is a regexp matching a valid link | ||||
| var LinkRegex, _ = xurls.StrictMatchingScheme("https?://") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user