eslint: yoda

This commit is contained in:
Rory& committed 2026-04-19 22:45:37 +02:00
1 parent a8204b0c02
commit c5504878b8
4 files changed
+7 -5

No files matched your search

+2 -2
View File
@@ -44,12 +44,12 @@ export function checkPassword(password: string): number {
}
// checks for amount of Numbers
if (password.match(reNUMBER)?.length ?? 0 >= minNumbers - 1) {
if ((password.match(reNUMBER)?.length ?? 0) >= minNumbers - 1) {
strength += 0.05;
}
// checks for amount of Uppercase Letters
if (password.match(reUPPERCASELETTER)?.length ?? 0 >= minUpperCase - 1) {
if ((password.match(reUPPERCASELETTER)?.length ?? 0) >= minUpperCase - 1) {
strength += 0.05;
}