Skip to content

Commit

Permalink
Adjust wording on error message
Browse files Browse the repository at this point in the history
  • Loading branch information
bjee19 committed Sep 10, 2024
1 parent 9afbfa1 commit e4f7e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/mode/static/nginx/config/validation/generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (GenericValidator) ValidateServiceName(name string) error {

const (
durationStringFmt = `^[0-9]{1,4}(ms|s|m|h)?`
durationStringErrMsg = "must contain a four digit number followed by 'ms', 's', 'm', or 'h'"
durationStringErrMsg = "must contain an, at most, four digit number followed by 'ms', 's', 'm', or 'h'"
)

var durationStringFmtRegexp = regexp.MustCompile("^" + durationStringFmt + "$")
Expand Down

0 comments on commit e4f7e2c

Please sign in to comment.