mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-06-22 14:44:12 +01:00
6768095f8f
* fix: add support for multibyte chars for `truncate`, `stripped_input`, `tgui_input_text` (#85313) ## About The Pull Request Add support for multibyte chars for `truncate`, `stripped_input`, `tgui_input_text`. Right now, on UI of `tgui_input_text` chars are counted, but on back-end - bytes. So I made it consistent. Also fixed that for `stripped_input`, which is used in case of disabled `tgui input`. While I was here, made `truncate` proc consistent too ## Why It's Good For The Game Tgui text input won't lie about the size of input ## Changelog N/A * fix: add support for multibyte chars for `truncate`, `stripped_input`, `tgui_input_text` --------- Co-authored-by: Gaxeer <44334376+Gaxeer@users.noreply.github.com>