diff options
author | =Corey Hulen <corey@hulen.com> | 2015-10-08 09:34:49 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-10-08 09:34:49 -0700 |
commit | e640bf7b6c1f6b3f20db954b27430261c18accda (patch) | |
tree | de5b630126b219b2ef380f0b9f2a8c0532da812b /web/react/utils/markdown.jsx | |
parent | d412144f88a24925af8500d9b1b7535e518a3eb6 (diff) | |
download | chat-e640bf7b6c1f6b3f20db954b27430261c18accda.tar.gz chat-e640bf7b6c1f6b3f20db954b27430261c18accda.tar.bz2 chat-e640bf7b6c1f6b3f20db954b27430261c18accda.zip |
Fixing issue with lastIndexOf
Diffstat (limited to 'web/react/utils/markdown.jsx')
-rw-r--r-- | web/react/utils/markdown.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/utils/markdown.jsx b/web/react/utils/markdown.jsx index 78d2b801d..aff776d05 100644 --- a/web/react/utils/markdown.jsx +++ b/web/react/utils/markdown.jsx @@ -41,7 +41,7 @@ export class MattermostMarkdownRenderer extends marked.Renderer { output += ' title="' + title + '"'; } - if (outHref.lastIndexOf(Utils.getTeamURLFromAddressBar()) === 0) { + if (outHref.lastIndexOf(Utils.getTeamURLFromAddressBar(), 0) === 0) { output += '>'; } else { output += ' target="_blank">'; |