diff options
author | Asaad Mahmood <Unknowngi@live.com> | 2015-07-28 18:01:10 +0500 |
---|---|---|
committer | Asaad Mahmood <Unknowngi@live.com> | 2015-07-28 18:01:10 +0500 |
commit | 5d77ff4bcde3496554551701438c1f42550e58b3 (patch) | |
tree | b5ae06798661167b07286d381199c5de2004f300 /web/react/components/create_post.jsx | |
parent | 3dd541d3e09b99c60b892c37419dfa30b10700c7 (diff) | |
parent | 3a297135372c288b11c75acf6100d97c35c9dae3 (diff) | |
download | chat-5d77ff4bcde3496554551701438c1f42550e58b3.tar.gz chat-5d77ff4bcde3496554551701438c1f42550e58b3.tar.bz2 chat-5d77ff4bcde3496554551701438c1f42550e58b3.zip |
Merge branch 'master' of https://github.com/mattermost/platform
Diffstat (limited to 'web/react/components/create_post.jsx')
-rw-r--r-- | web/react/components/create_post.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/create_post.jsx b/web/react/components/create_post.jsx index 87895588e..327520210 100644 --- a/web/react/components/create_post.jsx +++ b/web/react/components/create_post.jsx @@ -32,7 +32,7 @@ module.exports = React.createClass({ post.message = this.state.messageText; // if this is a reply, trim off any carets from the beginning of a message - if (this.state.rootId && post.message.startsWith("^")) { + if (this.state.rootId && post.message[0] === "^") { post.message = post.message.replace(/^\^+\s*/g, ""); } |