diff --git a/core/comm/const.go b/core/comm/const.go index 3b9c7ea..533a49d 100644 --- a/core/comm/const.go +++ b/core/comm/const.go @@ -11,4 +11,9 @@ const ( TimeFmtpck = "2006-01-02T15:04:05.999999999Z" ) -var REG_Phone = regexp.MustCompile(`^([0-9]{0,3})[1][3,4,5,7,8,9][0-9]{9}$`) +var ( + AppName = "一点通教学网" + REG_Host = regexp.MustCompile(`((\w+\.)*)((jzdisk\.)\w+)(:\d+)?`) + REG_Hosts = regexp.MustCompile(`https?://((\w+\.)*)((1ydt\.)\w+)(:\d+)?`) + REG_Phone = regexp.MustCompile(`^([0-9]{0,3})[1][3,4,5,7,8,9][0-9]{9}$`) +)