fix zero-length /me

pull/21833/head
Matthew Hodgson 2016-03-16 19:52:24 +00:00
parent bb918f198b
commit 87e1bc2f07
1 changed files with 1 additions and 1 deletions

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) {