Skip to content

Commit 461ae48

Browse files
committed
fix(validation): use mb_strlen in IsPassword for Unicode support
1 parent 332d245 commit 461ae48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/validation/src/Rules/IsPassword.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function isValid(mixed $value): bool
3232
return false;
3333
}
3434

35-
if (strlen($value) < $this->min) {
35+
if (mb_strlen($value) < $this->min) {
3636
return false;
3737
}
3838

0 commit comments

Comments
 (0)