refactor: remove unused code

This commit is contained in:
dudaodong committed 2022-02-15 11:19:07 +08:00
1 parent d872d64fe0
commit 5e318a78d2
3 files changed
+1 -17

No files matched your search

-5
View File
@@ -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