Skip to content

Ignore formatting codes when calculting the maximum line length. #4

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lzlrd
Copy link

@lzlrd lzlrd commented Dec 14, 2021

This avoids being blocked from setting a message that is acceptable [length-wise] but had formatting codes chucked in. You can test with a message such as Click here for which would surpass 15 characters if you add a &l to the front of it.

@lzlrd
Copy link
Author

lzlrd commented Dec 14, 2021

Oh and, thanks for the plugin!

@MylesMor
Copy link
Owner

Thanks for the suggestion! I agree, that was an oversight, thanks for pointing it out! I'm very busy at the moment so it may take me a few days to test and deploy a new version, but I appreciate your patience :)

@NotAlexNoyle
Copy link

Adopted on my branch in 1.2.0 https://github.com/NotAlexNoyle/SudoSigns-OG

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.

3 participants