Skip to content

Commit

Permalink
Typo fix
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Stovell <[email protected]>
  • Loading branch information
Sesquipedalian committed Nov 19, 2024
1 parent e43eeb8 commit 46f2da3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Localization/MessageFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,9 @@ protected static function applyNumberSkeleton(int|float|string $number, string $
$skeleton = preg_replace_callback_array(
[
'/(?<=\s|^)(EE?)((?:\+[!?])?)(0+)(?=\s|$)/' => function ($matches) {
$long_form = $matches[0] === 'EE' ? 'engineering' : 'scientific';
$long_form = $matches[1] === 'EE' ? 'engineering' : 'scientific';

switch ($matches[1]) {
switch ($matches[2]) {
case '+!':
$long_form .= '/sign-always';
break;
Expand Down

0 comments on commit 46f2da3

Please sign in to comment.