Truncate strings with fullwidth characters and ANSI codes.
04-Mar-2021 1359
No monkey-patching String classOmit text from the start, middle, end or both endsAccount for fullwidth characters in encodings such as UTF-8, EUC-JPShorten text without whitespaces between words (Chinese, Japanese, Korean etc)Preserve ANSI escape codes.
Truncate strings with fullwidth characters and ANSI codes. #ruby #rubydeveloper #rubyonrails #Truncate #strings #fullwidth #characters #codes. #codes. https://rubyonrails.ba/link/truncate-strings-with-fullwidth-characters-and-ansi-codes