Closed Likhachev closed 2 years ago
@Likhachev Thanks for reporting the bug. I've found that whitespace around Cyrillic х
has causes issue when we try to use the vertical tab \v
in the preg_replace function. I'll post an update with possible fix.
Seeing similar issues with Persian strings like داروی جامع امام رضا + کاربرد و نحوه مصرف دارو
:
Appearance is fine again when not using the MinifyHtml
transformer.
This issue should have been solved with #421. @swissspidy can you confirm by testing with 0.9.0+?
Can confirm that this is now fixed!
Fixed via #421
Output
Works only with space right after the letter:
ххххх
=>хххх�
butххххха
=>ххххха
The problem in
\AmpProject\Optimizer\Transformer\MinifyHtml::normalizeWhitespace
Temporary workaround - turn off whitespace collapsing