Skip to content

Commit

Permalink
Hound fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-WWU-IT committed Aug 19, 2021
1 parent 9163342 commit 2668213
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ func IsValidPhoneNumber(number string) bool {
return re.MatchString(number)
}

// IsValidName cheks if the given name doesn't contain any non-alpha, space or dash characters.
func IsValidName(name string) bool {
re := regexp.MustCompile(`^[A-Za-z\s\-]*$`)
return re.MatchString(name)
Expand Down

0 comments on commit 2668213

Please sign in to comment.