Explorar el Código

fix:修复正则错误

lifei6671 hace 7 años
padre
commit
f41d507db5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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