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
While you are working on Ellipsis, please look at the code behavior.
I doubt the code does what is expected with a Unicode character like π§ββοΈ by truncating to Len 1
The text was updated successfully, but these errors were encountered:
Yes, I confirm the bug:
is.Equal("1π§ββοΈ234", lo.Ellipsis("1π§ββοΈ234", 5)) is.Equal("1π§ββοΈ2...", lo.Ellipsis("1π§ββοΈ234", 6))
Sorry, something went wrong.
This bug could be fixed by counting the string grapheme cluster at github.com/rivo/uniseg .
github.com/rivo/uniseg
If this policy is acceptable, I'll work on a PR for the fix!
Sure.
Please do not import dependency. I keep this repo as lightweight as possible. A little copy is sometimes better than a dependency.
No branches or pull requests
While you are working on Ellipsis, please look at the code behavior.
I doubt the code does what is expected with a Unicode character like π§ββοΈ by truncating to Len 1
The text was updated successfully, but these errors were encountered: