mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 22:27:48 +00:00
Loosen email regex
This commit is contained in:
@@ -114,7 +114,7 @@ func init() {
|
|||||||
|
|
||||||
func askForLoginCredentials() (email string, password string, err error) {
|
func askForLoginCredentials() (email string, password string, err error) {
|
||||||
validateEmail := func(input string) error {
|
validateEmail := func(input string) error {
|
||||||
matched, err := regexp.MatchString("^[\\w!#$%&'*+/=?`{|}~^-]+(?:\\.[\\w!#$%&'*+/=?`{|}~^-]+)*@(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,6}$", input)
|
matched, err := regexp.MatchString("^\\S+@\\S+$", input)
|
||||||
if err != nil || !matched {
|
if err != nil || !matched {
|
||||||
return errors.New("this doesn't look like an email address")
|
return errors.New("this doesn't look like an email address")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ var rootCmd = &cobra.Command{
|
|||||||
Short: "Infisical CLI is used to inject environment variables into any process",
|
Short: "Infisical CLI is used to inject environment variables into any process",
|
||||||
Long: `Infisical is a simple, end-to-end encrypted service that enables teams to sync and manage their environment variables across their development life cycle.`,
|
Long: `Infisical is a simple, end-to-end encrypted service that enables teams to sync and manage their environment variables across their development life cycle.`,
|
||||||
CompletionOptions: cobra.CompletionOptions{DisableDefaultCmd: true},
|
CompletionOptions: cobra.CompletionOptions{DisableDefaultCmd: true},
|
||||||
Version: "0.1.6",
|
Version: "0.1.8",
|
||||||
}
|
}
|
||||||
|
|
||||||
// Execute adds all child commands to the root command and sets flags appropriately.
|
// Execute adds all child commands to the root command and sets flags appropriately.
|
||||||
|
|||||||
Reference in New Issue
Block a user