Skip to content

Commit

Permalink
should solve issue #93 that occurs on some string manipulation functi…
Browse files Browse the repository at this point in the history
…on with systems that use tr_TR locale
  • Loading branch information
seboettg committed Sep 25, 2020
1 parent 038189d commit 04f8881
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Util/NumberHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ public static function roman2Dec($romanNumber)

$values = [];
// Convert the string to an array of roman values:
for ($i = 0; $i < strlen($romanNumber); ++$i) {
$char = strtoupper($romanNumber[$i]);
for ($i = 0; $i < mb_strlen($romanNumber); ++$i) {
$char = mb_strtoupper($romanNumber[$i]);
if (self::ROMAN_DIGITS[$char] !== null) {
$values[] = self::ROMAN_DIGITS[$char];
}
Expand Down

0 comments on commit 04f8881

Please sign in to comment.