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

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

Open
mloeser21 opened this issue Dec 6, 2021 · 0 comments
Open

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

mloeser21 opened this issue Dec 6, 2021 · 0 comments

Comments

@mloeser21
Copy link

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.

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

No branches or pull requests

1 participant