|
|
@ -493,7 +493,7 @@ var ( |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
// isUsableName checks if name is reserved or pattern of name is not allowed
|
|
|
|
// isUsableName checks if name is reserved or pattern of name is not allowed
|
|
|
|
// based on given reversed names and patterns.
|
|
|
|
// based on given reserved names and patterns.
|
|
|
|
// Names are exact match, patterns can be prefix or suffix match with placeholder '*'.
|
|
|
|
// Names are exact match, patterns can be prefix or suffix match with placeholder '*'.
|
|
|
|
func isUsableName(names, patterns []string, name string) error { |
|
|
|
func isUsableName(names, patterns []string, name string) error { |
|
|
|
name = strings.TrimSpace(strings.ToLower(name)) |
|
|
|
name = strings.TrimSpace(strings.ToLower(name)) |
|
|
|