fix zero-length /me

This commit is contained in:
Matthew Hodgson 2016-03-16 19:52:24 +00:00
parent 8f967d6e23
commit 4571c64413

View file

@ -314,7 +314,7 @@ module.exports = React.createClass({
return;
}
var isEmote = /^\/me /i.test(contentText);
var isEmote = /^\/me( |$)/i.test(contentText);
var sendMessagePromise;
if (isEmote) {