Skip to content
New issue

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

Use utf8.RuneCountInString instead of len #2

Merged
merged 1 commit into from
Nov 15, 2015
Merged

Use utf8.RuneCountInString instead of len #2

merged 1 commit into from
Nov 15, 2015

Conversation

aquilax
Copy link
Contributor

@aquilax aquilax commented Nov 15, 2015

Better support for unicode accounts.

len returns the number of bytes, which breaks the formatting if the account uses wide characters.

howeyc added a commit that referenced this pull request Nov 15, 2015
Use utf8.RuneCountInString instead of len
@howeyc howeyc merged commit 14983ea into howeyc:master Nov 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants