summaryrefslogtreecommitdiffstats
path: root/web/react/components/create_post.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-07-27 17:27:44 -0400
committerJoram Wilander <jwawilander@gmail.com>2015-07-27 17:27:44 -0400
commitd9f7d43e96ddde3c7ac2b69cf96ab7bef3106851 (patch)
treeb3f6e3663a7d1ed4b8636ac2307a890376336770 /web/react/components/create_post.jsx
parenta6427d99f77ee85060e24ffadd787643b9d6b45e (diff)
parenta3cbe598fb6732be92bdd7e54cedc7737a513c34 (diff)
downloadchat-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.jsx2
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, "");
}