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

disable sending 'all white space' messages #4

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

disable sending 'all white space' messages #4

wants to merge 1 commit into from

Conversation

chmus
Copy link

@chmus chmus commented Sep 24, 2020

Chat currently does not check whether the message is 'all white space' text. This small addition should fix it.
However, I am currently unable to test if this will work, so it can be a wrong fix.

P. S. By the way, I am experienced neither in making pull requests nor in React 😅. Hopefully, it will not cause any problems.

Chat currently does not check whether the message is 'all white space' text. This small addition should fix it.
However, I am currently unable to test if this will work, so it can be a wrong fix.
@hakanrw
Copy link

hakanrw commented Sep 27, 2020

Looks fine, but would be shorter and possibly faster if you used String.prototype.trim()

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.

2 participants