Closed
Description
Symfony version(s) affected
6
Description
The money type for RTL languages is empty.
This bug happens in PrestaShop BackOffice: PrestaShop/PrestaShop#27051
en-US:
Money type: $
fa-IR:
Money type: null
Must be: ریال
How to reproduce
When shop language is RTL, the numerical digits for currency are in the form of Unicode: ۱۲۳
۱ => U+06F1
۲ => U+06F2
۳ => U+06F3
But preg_match pattern designed to find ASCII digits (i.e. 123
)
/^([^\s\xc2\xa0]*)[\s\xc2\xa0]*123(?:[,.]0+)?[\s\xc2\xa0]*([^\s\xc2\xa0]*)$/u
Possible Solution
No response
Additional Context
No response