From 491834e6b1ca76239fab74973f21f9ab5bbc88e4 Mon Sep 17 00:00:00 2001 From: lifei6671 Date: Wed, 23 Jan 2019 10:43:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=B4=A6=E5=8F=B7=E6=AD=A3=E5=88=99?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/enumerate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/enumerate.go b/conf/enumerate.go index 9be28e28c..a31eb3e67 100644 --- a/conf/enumerate.go +++ b/conf/enumerate.go @@ -19,7 +19,7 @@ const CaptchaSessionName = "__captcha__" const RegexpEmail = "^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$" //允许用户名中出现点号 -const RegexpAccount = `^[a-zA-Z][a-zA-Z0-9\.]{2,50}$` +const RegexpAccount = `^[a-zA-Z][a-zA-Z0-9\.-]{2,50}$` // PageSize 默认分页条数. const PageSize = 10