Skip to content

Commit

Permalink
Merge pull request #8 from raihanul-2k15/fix-mim-provider-number-format
Browse files Browse the repository at this point in the history
Fix number format issue in MIM provider
  • Loading branch information
arif98741 authored Jul 8, 2023
2 parents 9fb97f3 + 7585b1e commit 098dfbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Provider/Mim.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ private function formatNumber($mobile): string
if (mb_substr($mobile, 0, 2) == '01') {
$number = $mobile;
} elseif (mb_substr($mobile, 0, 2) == '88') {
$number = str_replace('88', '', $mobile);
$number = mb_substr($mobile, 2);
} elseif (mb_substr($mobile, 0, 3) == '+88') {
$number = str_replace('+88', '', $mobile);
$number = mb_substr($mobile, 3);
}
return '88' . $number;
}
Expand Down

0 comments on commit 098dfbb

Please sign in to comment.