From ea454c21f776a0fd4f7d3a64218bea6e743e5dce Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 29 Aug 2015 15:45:58 +0800 Subject: #1542 A way to skip TLS verify for SMTP authentication --- models/repo.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'models/repo.go') diff --git a/models/repo.go b/models/repo.go index 15ddaa2e..9934ec5a 100644 --- a/models/repo.go +++ b/models/repo.go @@ -48,10 +48,6 @@ var ( Gitignores, Licenses, Readmes []string ) -var ( - DescPattern = regexp.MustCompile(`https?://\S+`) -) - func LoadRepoConfig() { // Load .gitignore and license files and readme templates. types := []string{"gitignore", "license", "readme"} @@ -266,6 +262,10 @@ func (repo *Repository) IsOwnedBy(userID int64) bool { return repo.OwnerID == userID } +var ( + DescPattern = regexp.MustCompile(`https?://\S+`) +) + // DescriptionHtml does special handles to description and return HTML string. func (repo *Repository) DescriptionHtml() template.HTML { sanitize := func(s string) string { -- cgit v1.2.3