Merge pull request #254 from hmhealey/mm1674

MM-1674 Replaced call to String.prototype.startsWith which only works in browsers that support ES6
Этот коммит содержится в:
Joram Wilander
2015-07-27 17:27:44 -04:00
родитель a6427d99f7 a3cbe598fb
Коммит d9f7d43e96

Просмотреть файл

@@ -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, "");
}