Support more special chars in password validating

This commit is contained in:
Yang Luo
2024-01-15 16:41:08 +08:00
parent d92b072ed0
commit 8227762988
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ var (
regexLowerCase = regexp.MustCompile(`[a-z]`)
regexUpperCase = regexp.MustCompile(`[A-Z]`)
regexDigit = regexp.MustCompile(`\d`)
regexSpecial = regexp.MustCompile(`[!@#$%^&*]`)
regexSpecial = regexp.MustCompile("[!-/:-@[-`{-~]")
)
func isValidOption_AtLeast6(password string) string {