Skip to content

Truncate over-long reason instead of dropping #381

@armanbilge

Description

@armanbilge

// reason must be no longer than 123 bytes of UTF-8 text
// UTF-8 character is max 4 bytes so we can fast-path
if (reason.length <= 30 || reason.getBytes.length <= 123)
Some(reason)
else
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions