Browse Source

fix:修复正则错误

lifei6671 7 năm trước cách đây
mục cha
commit
f41d507db5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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