Skip to content

Commit

Permalink
fix regex again
Browse files Browse the repository at this point in the history
  • Loading branch information
kpcraig committed May 16, 2024
1 parent 7b5ff08 commit 5169801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ func graphURIFromName(name string) (string, error) {
return c, nil
}

var nameRx = regexp.MustCompile(`^([a-zA-Z][a-zA-Z0-9\-]*)$|^$`)
var nameRx = regexp.MustCompile(`^([a-zA-Z0-9][a-zA-Z0-9\-]*)$|^$`)
var rgRx = regexp.MustCompile(`^([\-_.\pL\pN]*[\-_\pL\pN])$|^$`)

// verify the field provided matches Azure's requirements
Expand Down

0 comments on commit 5169801

Please sign in to comment.