From a3cbe598fb6732be92bdd7e54cedc7737a513c34 Mon Sep 17 00:00:00 2001 From: hmhealey Date: Mon, 27 Jul 2015 10:44:53 -0400 Subject: Replaced instance of String.prototype.startsWith which only works in browsers that support ES6 --- web/react/components/create_post.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/react/components/create_post.jsx') 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, ""); } -- cgit v1.2.3-1-g7c22