ソースを参照

fix:修复正则错误

lifei6671 7 年 前
コミット
f41d507db5
1 ファイル変更1 行追加1 行削除
  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