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

Copy & paste introduces nbsp \u00a0 character #94

Closed
themarcelor opened this issue Dec 6, 2021 · 2 comments
Closed

Copy & paste introduces nbsp \u00a0 character #94

themarcelor opened this issue Dec 6, 2021 · 2 comments

Comments

@themarcelor
Copy link
Contributor

themarcelor commented Dec 6, 2021

When someone copies & pastes commands, they end up with a weird character \u00a0 do the command ends up being ignored.

U+00A0 No-Break Space (NBSP) Unicode Character).

e.g., The payload shows something like "text":"\u00a0my-command arg1 arg2"

The payload can be visualized if we start Slacker in DEBUG mode:

                bot = slacker.NewClient(slackBotToken, slackAppToken, slacker.WithDebug(true))

Perhaps the input could be sanitized?

@themarcelor
Copy link
Contributor Author

Created a PR 🤷🏼
#95

@arusso
Copy link
Collaborator

arusso commented Dec 15, 2021

Closed with the merging of #95

@arusso arusso closed this as completed Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants