Skip to content

Commit

Permalink
fix:账号正则修改
Browse files Browse the repository at this point in the history
  • Loading branch information
lifei6671 committed Jan 23, 2019
1 parent 3448794 commit 491834e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conf/enumerate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 491834e

Please sign in to comment.