Merge pull request #254 from hmhealey/mm1674

MM-1674 Replaced call to String.prototype.startsWith which only works in browsers that support ES6
This commit is contained in:
Joram Wilander
2015-07-27 17:27:44 -04:00
+1 -1
View File
@@ -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, "");
}