Skip to content

Commit 332d245

Browse files
committed
fix(validation): use mb_strlen in HasLength for Unicode support
1 parent a785522 commit 332d245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/validation/src/Rules/HasLength.php

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

33-
$length = strlen($value);
33+
$length = mb_strlen($value);
3434

3535
$min = $this->min ?? $length;
3636
$max = $this->max ?? $length;

0 commit comments

Comments
 (0)