Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
func ApiManagementChildName(v interface{}, k string) (warnings []string, errors []error) {
value := v.(string)

// from the portal: `The field may contain only numbers, letters, underscore (-), and dash (-) sign when preceded and followed by number or a letter.`
// from the portal: `The field may contain only numbers, letters, underscore (_), and dash (-) sign when preceded and followed by number or a letter.`
if matched := regexp.MustCompile(`^[a-zA-Z0-9]([a-zA-Z0-9-_]{0,78}[a-zA-Z0-9])?$`).Match([]byte(value)); !matched {
errors = append(errors, fmt.Errorf("%q may only contain alphanumeric characters, underscores and dashes up to 80 characters in length", k))
}
Expand Down
Loading