Skip to content

Commit 1e8204f

Browse files
author
Thiago Uehara
committed
Updated user's regex
1 parent 78e820f commit 1e8204f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ns1/resource_user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"gopkg.in/ns1/ns1-go.v2/rest/model/account"
1313
)
1414

15-
var usernameRegex = regexp.MustCompile(`^([a-zA-Z0-9_+.@]+)$`)
15+
var usernameRegex = regexp.MustCompile(`^[a-zA-Z0-9@$&'*+\-=? ^_.{|}~]{3,320}$`)
1616

1717
func userResource() *schema.Resource {
1818
s := map[string]*schema.Schema{

0 commit comments

Comments
 (0)