Skip to content
Snippets Groups Projects
Commit 4571c644 authored by Matthew Hodgson's avatar Matthew Hodgson
Browse files

fix zero-length /me

parent 8f967d6e
No related branches found
No related tags found
No related merge requests found
...@@ -314,7 +314,7 @@ module.exports = React.createClass({ ...@@ -314,7 +314,7 @@ module.exports = React.createClass({
return; return;
} }
var isEmote = /^\/me /i.test(contentText); var isEmote = /^\/me( |$)/i.test(contentText);
var sendMessagePromise; var sendMessagePromise;
if (isEmote) { if (isEmote) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment