Merge pull request #254 from hmhealey/mm1674
MM-1674 Replaced call to String.prototype.startsWith which only works in browsers that support ES6
Этот коммит содержится в:
@@ -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, "");
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user