Skip to content

Commit

Permalink
update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
catsby committed Sep 9, 2024
1 parent 0e1b46d commit 56c3a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func JSONValue(value any) (string, error) {
// and then returns a lowercased version, with spaces (" ") replaced with "-".
func FormatBundleName(src string) (string, error) {
if regexp.MustCompile(`[^a-zA-Z0-9 -]+`).MatchString(src) {
return "", errors.New("invalid bundle name found; only use letters, numbers, and hypens")
return "", errors.New("bundle names should only include letters, numbers, and hypens")
}
src = strings.TrimSpace(src)
src = regexp.MustCompile(` +`).ReplaceAllString(src, "-")
Expand Down

0 comments on commit 56c3a17

Please sign in to comment.