diff options
author | Jeremy Daer <jeremydaer@gmail.com> | 2016-12-09 11:34:35 -0700 |
---|---|---|
committer | Jeremy Daer <jeremydaer@gmail.com> | 2018-02-18 00:14:51 -0800 |
commit | 4940cc49ddb361d584d51bc3eb4675ff8ece4a2b (patch) | |
tree | ef8c912363d354b379eb56bc8b2bd1bb7cea83dc /railties/test/application/middleware_test.rb | |
parent | 8454aeeb2b8e7d1255acbaaec4e0ae3c97d55f49 (diff) | |
download | rails-4940cc49ddb361d584d51bc3eb4675ff8ece4a2b.tar.gz rails-4940cc49ddb361d584d51bc3eb4675ff8ece4a2b.tar.bz2 rails-4940cc49ddb361d584d51bc3eb4675ff8ece4a2b.zip |
String#truncate_bytes: limit to N bytes without breaking multibyte chars
This faithfully preserves grapheme clusters (characters composed of other
characters and combining marks) and other multibyte characters.
Diffstat (limited to 'railties/test/application/middleware_test.rb')
0 files changed, 0 insertions, 0 deletions