Skip to content

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

Open
lzlrd wants to merge 1 commit intoMylesMor:masterfrom
lzlrd:master
Open

Ignore formatting codes when calculting the maximum line length.#4
lzlrd wants to merge 1 commit intoMylesMor:masterfrom
lzlrd:master

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

NotAlexNoyle commented Dec 29, 2023

Adopted on my fork in 1.2.0 https://github.com/true-og/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