fix:账号正则修改

pull/536/head
lifei6671 2019-01-23 10:43:07 +08:00
parent 34487947ba
commit 491834e6b1
1 changed files with 1 additions and 1 deletions

View File

@ -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