We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
generation of UTF-8 strings (CJK, UTF8) does not respect byte limit (255 in my example) and can return string longer than given bytes:
RFauxFactory.gen_strings(1..255).values RFauxFactory.gen_utf8(1..255) RFauxFactory.gen_cjk(1..255)
Expected behaviour is obviously to respect the limit. In Foreman codebase, I've temporarily used truncate_bytes method from Rails 6+ to fix that.
truncate_bytes
RFauxFactory.gen_strings(1..255).values.map {|x| x.truncate_bytes(255, omission: '')},
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
generation of UTF-8 strings (CJK, UTF8) does not respect byte limit (255 in my example) and can return string longer than given bytes:
Expected behaviour is obviously to respect the limit. In Foreman codebase, I've temporarily used
truncate_bytes
method from Rails 6+ to fix that.The text was updated successfully, but these errors were encountered: