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

Truncate: Be explicit on truncation of runes or bytes. #3135

Merged
merged 4 commits into from
Nov 9, 2022
Merged

Conversation

gotjosh
Copy link
Member

@gotjosh gotjosh commented Nov 9, 2022

While most integrations set a limit by UTF-8 compatible characters (some like Webex) use runes - as pointed out in #3132. This PR makes it explicit wether the truncation is happening at a byte or rune level.

Signed-off-by: gotjosh josue.abreu@gmail.com

While most integrations set a limit by UTF-8 compatible characters (some like Webex) use runes - as pointed out in #3132. This PR makes it explicit wether the truncation is happening at a byte or rune level.

Signed-off-by: gotjosh <josue.abreu@gmail.com>
Signed-off-by: gotjosh <josue.abreu@gmail.com>
Signed-off-by: gotjosh <josue.abreu@gmail.com>
notify/util.go Outdated Show resolved Hide resolved
Signed-off-by: gotjosh <josue.abreu@gmail.com>
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.

None yet

2 participants