Skip to content

Commit 7ffc879

Browse files
committed
ACP2E-1012: No space between a custom currency symbol and a price
1 parent 8e4c2ca commit 7ffc879

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Directory/Model/Currency.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ private function formatCurrency(string $price, array $options): string
437437
$formattedCurrency = preg_replace('/( |&nbsp|\xc2\xa0)*/iu', '', $formattedCurrency);
438438

439439
if (!array_key_exists(LocaleCurrency::CURRENCY_OPTION_DISPLAY, $options)) {
440-
// remove non-breaking space from intl supported custom currency symbols in formatted currency
440+
// remove non-breaking space when `display` is not set explicitly
441441
$formattedCurrency = str_replace(' ', '', $formattedCurrency);
442442
}
443443
}

0 commit comments

Comments
 (0)