1
0
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:
frederikhors 2020-01-29 13:14:14 +01:00 committed by GitHub
parent 852e35abde
commit 89a17c17c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]+`),
}
}