mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-04 12:52:28 +08:00
refactor: remove unused code
This commit is contained in:
@@ -234,11 +234,6 @@ func IsStrongPassword(password string, length int) bool {
|
||||
}
|
||||
|
||||
return num && lower && upper && special
|
||||
|
||||
// go doesn't support regexp (?=re)
|
||||
//pattern := `^(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[@#$%^&+=])(?=\S+$).$`
|
||||
//reg := regexp.MustCompile(pattern)
|
||||
//return reg.MatchString(password)
|
||||
}
|
||||
|
||||
// IsWeakPassword check if the string is weak password
|
||||
|
||||
Reference in New Issue
Block a user