regexes

package
v0.0.0-...-688b8c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Username is the regex for a valid Spherical username.
	Username = regexp.MustCompile("^[a-zA-Z0-9][a-zA-Z0-9_-]{3,31}$")

	// Password is the regex for a valid Spherical password.
	Password = regexp.MustCompile("^[^ ].{5,71}$")

	// Email is the regex for a valid Spherical e-mail.
	Email = regexp.MustCompile("^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL