feat:完善项目信息
This commit is contained in:
@ -14,8 +14,9 @@ func ValidateEmail(email string) bool {
|
||||
return reg.MatchString(email)
|
||||
}
|
||||
|
||||
func ValidateUrl(url string) {
|
||||
//reg := regexp.MustCompile("^([hH][tT]{2}[pP]:|||[hH][tT]{2}[pP][sS]:|www\.)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$")
|
||||
func ValidateUrl(obj string) bool {
|
||||
reg := regexp.MustCompile("^(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]")
|
||||
return reg.MatchString(obj)
|
||||
}
|
||||
|
||||
func ValidateIDCard(obj string) bool {
|
||||
|
Reference in New Issue
Block a user