From 87e1bc2f0793e9eb554dfcd4842c6b6414afcb31 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Wed, 16 Mar 2016 19:52:24 +0000 Subject: [PATCH] fix zero-length /me --- src/components/views/rooms/MessageComposer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/MessageComposer.js b/src/components/views/rooms/MessageComposer.js index d5aaaa1128..90bf14f5af 100644 --- a/src/components/views/rooms/MessageComposer.js +++ b/src/components/views/rooms/MessageComposer.js @@ -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) {