Fix incorrect space count of CJK characters
fixed #185
Using mb_strwidth() to replace mb_strlen() to fix the incorrect space count of CJK characters.
Looks good to me. cc @nunomaduro
@xiCO2k can you fixes tests on main and rebase?
Sure Will do it later today
Hi @nunomaduro, could you review the PR #193? It looks like it may fix CI for this PR 🤔.
I saw a new package, Grapheme, which calculates the display width of Unicode graphemes in terminal environments. It is made for Solo by Aaron Francis.
Is it possible to use this package instead to process CJK characters? Maybe it would be better. 🤔
Is updated onto upstream
ping @xiCO2k @nunomaduro
@xiCO2k Could you review this PR? The CI is fixed on upstream; I think it's now safe to merge.
This fix will be extremely helpful for our team.
cc @nunomaduro
Here a similar case https://github.com/laravel/framework/pull/57367