Skip to content

Truncating status does not work if status includes '-' #7

@mloeser21

Description

@mloeser21

Hi,

When inserting long status strings that include '-' the formatting eventually breaks:
So instead of the expected
image

we end up seeing:
image

The reason was a line down further, where we had:
ccu2-4 [VFAS-xxxxx-HW-revB-EMT-Port-Failure-Debugging]

But if I instead put

ccu2-4 status 012345678901234567890123456789012345678901234567890123456789012345678901234567890

then the status gets truncated and Slack shows

ccu2-4 [01234567890123456789012345678901234567890]

So it truncates to 41 characters.
However, if I submit the status as

status ccu2-4 0123456789-0123456789-0123456789-0123456789

instead I see the same issue again as the string does not get truncated, the full string including the hyphens is displayed:

ccu2-4 [0123456789-0123456789-0123456789-0123456789]

But at the beginning and end I see
image
again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions