Skip to content

Commit 4fa384b

Browse files
authored
fix(cockpit): add missing hyphen in regex (#2244)
1 parent c541103 commit 4fa384b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scaleway/resource_cockpit_grafana_user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func resourceScalewayCockpitGrafanaUser() *schema.Resource {
3232
Required: true,
3333
ForceNew: true,
3434
Description: "The login of the Grafana user",
35-
ValidateFunc: validation.StringMatch(regexp.MustCompile(`^[a-zA-Z0-9_]{2,24}$`), "must have between 2 and 24 alphanumeric characters"),
35+
ValidateFunc: validation.StringMatch(regexp.MustCompile(`^[a-zA-Z0-9_-]{2,24}$`), "must have between 2 and 24 alphanumeric characters"),
3636
},
3737
"password": {
3838
Type: schema.TypeString,

0 commit comments

Comments
 (0)