mirror of
https://github.com/volatiletech/authboss.git
synced 2024-11-28 08:58:38 +02:00
Repetition range replaceable by '+'
This commit is contained in:
parent
852e35abde
commit
89a17c17c4
@ -174,7 +174,7 @@ func NewHTTPBodyReader(readJSON, useUsernameNotEmail bool) *HTTPBodyReader {
|
||||
pidRules = Rules{
|
||||
FieldName: pid, Required: true,
|
||||
MatchError: "Must be a valid e-mail address",
|
||||
MustMatch: regexp.MustCompile(`.*@.*\.[a-z]{1,}`),
|
||||
MustMatch: regexp.MustCompile(`.*@.*\.[a-z]+`),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user