diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-07-27 17:27:44 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-07-27 17:27:44 -0400 |
commit | d9f7d43e96ddde3c7ac2b69cf96ab7bef3106851 (patch) | |
tree | b3f6e3663a7d1ed4b8636ac2307a890376336770 /web/react/components/create_post.jsx | |
parent | a6427d99f77ee85060e24ffadd787643b9d6b45e (diff) | |
parent | a3cbe598fb6732be92bdd7e54cedc7737a513c34 (diff) | |
download | chat-d9f7d43e96ddde3c7ac2b69cf96ab7bef3106851.tar.gz chat-d9f7d43e96ddde3c7ac2b69cf96ab7bef3106851.tar.bz2 chat-d9f7d43e96ddde3c7ac2b69cf96ab7bef3106851.zip |
Merge pull request #254 from hmhealey/mm1674
MM-1674 Replaced call to String.prototype.startsWith which only works in browsers that support ES6
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, ""); } |