fix kashkool
This commit is contained in:
@@ -54,8 +54,13 @@ class ValidationMiddleware
|
||||
private function fa2en_numbers($input) {
|
||||
if (is_string($input)) {
|
||||
$fa_numbers = ['۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹'];
|
||||
$ar_numbers = ['٠', '١', '٢', '٣', '٤', '٥', '٦', '٧', '٨', '٩'];
|
||||
$en_numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
|
||||
return str_replace($fa_numbers, $en_numbers, $input);
|
||||
$input = str_replace($fa_numbers, $en_numbers, $input);
|
||||
$input = str_replace($ar_numbers, $en_numbers, $input);
|
||||
$input = str_replace('٫', '.', $input);
|
||||
|
||||
return $input;
|
||||
} elseif (is_array($input)) {
|
||||
return array_map([$this, __FUNCTION__], $input);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user