Skip to content

Commit

Permalink
Replace mb_strlen with strlen.
Browse files Browse the repository at this point in the history
  • Loading branch information
ataiemajid63 committed Feb 25, 2021
1 parent d8b4315 commit dbb4e09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Formatters/SimpleDateFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function compile($pattern, $locale)
$currChar = '';
$index = 0;

for ($i = 0; $i < mb_strlen($pattern); $i++) {
for ($i = 0; $i < strlen($pattern); $i++) {
$currChar = $pattern[$i];

if ($currChar === '') {
Expand Down
2 changes: 1 addition & 1 deletion src/Parsers/SimpleParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function translate($format)
self::SHORT_SECOND => '(\d{1,2})',
];

for ($i = 0; $i < mb_strlen($format); $i++) {
for ($i = 0; $i < strlen($format); $i++) {
$currChar = $format[$i];

if ($currChar === '') {
Expand Down

0 comments on commit dbb4e09

Please sign in to comment.