Browse Source

fix:修复正则错误

lifei6671 7 years ago
parent
commit
f41d507db5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mail/smtp.go

+ 1 - 1
mail/smtp.go

@@ -22,7 +22,7 @@ import (
 
 var (
 	imageRegex  = regexp.MustCompile(`(src|background)=["'](.*?)["']`)
-	schemeRegxp = regexp.MustCompile(`^[A-z]+://`)
+	schemeRegxp = regexp.MustCompile(`^[a-zA-Z]+://`)
 )
 
 // Mail will represent a formatted email