Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Nov 9, 2024
1 parent 6a48833 commit 3e8c641
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions terminal/input/input_validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (v isNumberValidator) Validate(input string) (string, error) {
input = strings.TrimSpace(input)

if input == "" {
return input, nil // Empty imput is okay
return input, nil // Empty input is okay
}

_, err := strconv.ParseInt(input, 10, 64)
Expand All @@ -99,7 +99,7 @@ func (v isFloatValidator) Validate(input string) (string, error) {
input = strings.TrimSpace(input)

if input == "" {
return input, nil // Empty imput is okay
return input, nil // Empty input is okay
}

_, err := strconv.ParseFloat(input, 64)
Expand All @@ -116,7 +116,7 @@ func (v isEmailValidator) Validate(input string) (string, error) {
input = strings.TrimSpace(input)

if input == "" {
return input, nil // Empty imput is okay
return input, nil // Empty input is okay
}

name, domain, ok := strings.Cut(input, "@")
Expand All @@ -134,7 +134,7 @@ func (v isURLValidator) Validate(input string) (string, error) {
input = strings.TrimSpace(input)

if input == "" {
return input, nil // Empty imput is okay
return input, nil // Empty input is okay
}

switch {
Expand Down

0 comments on commit 3e8c641

Please sign in to comment.