This PR was submitted for the 3.x branch but it was merged into the 2.x branch instead.
Discussion
----------
Improving truncate documentation
Adding description and example of third parameter for `truncate` method to preserve whole words. This seems like a common use case and extremely useful addition that should be documented.
Commits
-------
cc017dec Improving truncate documentation
Adding description and example of third parameter for `truncate` method to preserve whole words. This seems like a common use case and extremely useful addition that should be documented.
This PR was submitted for the 3.x branch but it was squashed and merged into the 2.x branch instead.
Discussion
----------
[doc] Quick access to ICU user guide
I usefull to access quicky to pattern documentation.
Commits
-------
90a2278d [doc] Quick access to ICU user guide
This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead.
Discussion
----------
[Documentation] Emphase the fact that the include tag outputs data
Commits
-------
ef6debec Emphase the fact that the include tag outputs data
This PR was submitted for the 3.x branch but it was merged into the 1.x branch instead.
Discussion
----------
Fix missing delimiter for preg_quote in lexer
Is is a really edge case (PHP < 7.3 and '#' as whitespace_trim symbol), but for the sake of consistency here's a proper fix.
Commits
-------
41605057 Fix missing delimiter for preg_quote in lexer
This PR was submitted for the 3.x branch but it was squashed and merged into the 2.x branch instead.
Discussion
----------
Add another paragraph about mentioning another needed library
Commits
-------
4584576c Add another paragraph about mentioning another needed library
This PR was merged into the 2.x branch.
Discussion
----------
Replace implicit dependence on ext/iconv in JS escaper
Twig's JS escaper fails on non-word characters if `ext/iconv` isn't available. That's because it uses iconv to replace characters with their hex codepoints and split characters outside the Basic Multilingual Plane into surrogate pairs. `symfony/polyfill-iconv` does not support the UTF-16BE conversion and cannot be used as a replacement.
This PR splits the surrogates using native PHP, after obtaining the codepoint via `mb_ord()` which is provided either natively or via `symfony/polyfill-mbstring`, which is already part of Twig's requirements.
Commits
-------
b77c2c40 Replace implicit dependence on ext/iconv in JS escaper
This PR was merged into the 3.x branch.
Discussion
----------
Typo in release date in CHANGELOG
Introduced in 9b76b15354
Commits
-------
062d00fc Typo in release date in CHANGELOG