Skip to content

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

Merged
gotjosh merged 4 commits intomainfrom
fix-truncate
Nov 9, 2022
Merged

Truncate: Be explicit on truncation of runes or bytes.#3135
gotjosh merged 4 commits intomainfrom
fix-truncate

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>
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.

2 participants