Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com> Co-authored-by: Julien Robert <julien@rbrt.fr> Co-authored-by: marbar3778 <marbar3778@yahoo.com>
10 lines
199 B
Go
10 lines
199 B
Go
package types
|
|
|
|
import (
|
|
"regexp"
|
|
)
|
|
|
|
// IsAlphaNumeric defines a regular expression for matching against alphanumeric
|
|
// values.
|
|
var IsAlphaNumeric = regexp.MustCompile(`^[a-zA-Z0-9]+$`).MatchString
|