From 49ebd40fa39e8160b2bdfec36e3848da0b1fb238 Mon Sep 17 00:00:00 2001 From: "LinskRuis.32" Date: Thu, 18 Jun 2020 15:42:42 +0800 Subject: [PATCH] const+ --- core/comm/const.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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}$`) +)