Skip to content

Commit 7e987fc

Browse files
author
Serhii Balko
committed
Merge remote-tracking branch 'origin/MC-39891' into 2.4-develop-pr49
2 parents 6f79389 + cf862c2 commit 7e987fc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/code/Magento/Sales/Model/RtlTextHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function reverseRtlText(string $string): string
4848

4949
for ($i = 0; $i < $splitTextAmount; $i++) {
5050
if ($this->isRtlText($splitText[$i])) {
51-
for ($j = $i + 1; $j < $splitTextAmount; $j++) {
51+
for ($j = $i; $j < $splitTextAmount; $j++) {
5252
$tmp = $this->isRtlText($splitText[$j])
5353
? $this->stringUtils->strrev($splitText[$j]) : $splitText[$j];
5454
$splitText[$j] = $this->isRtlText($splitText[$i])

app/code/Magento/Sales/Test/Unit/Model/RtlTextHandlerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public function provideRtlTexts(): array
6262
['Herr Prof. Dr. Gerald Schüler B.A.', false],//German
6363
['نديم مقداد نعمان القحطاني', true],//Arabic
6464
['شهاب الفرحان', true],//Arabic
65+
['مرحبا ماجنت اثنان', true],//Arabic
6566
['צבר קרליבך', true],//Hebrew
6667
['גורי מייזליש', true],//Hebrew
6768
['اتابک بهشتی', true],//Persian

0 commit comments

Comments
 (0)