diff options
author | Corey Hulen <corey@hulen.com> | 2015-09-18 09:22:20 -0700 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-09-18 09:22:20 -0700 |
commit | 7caef4a7a7287433ed274c4f20d3593ea4065b66 (patch) | |
tree | 46f8dbf3dbc1f4f62ee364c83e99605dc88a46dd /web/react/utils | |
parent | d0f97b7a5f730706337e7884a7e697d80dc0a96c (diff) | |
parent | bc8e69d99f5b7b22fd1b781fa1862c24e0de0b90 (diff) | |
download | chat-7caef4a7a7287433ed274c4f20d3593ea4065b66.tar.gz chat-7caef4a7a7287433ed274c4f20d3593ea4065b66.tar.bz2 chat-7caef4a7a7287433ed274c4f20d3593ea4065b66.zip |
Merge pull request #716 from hmhealey/plt299
PLT-299 Fixed incorrect check if a url starts with an explicit protocol
Diffstat (limited to 'web/react/utils')
-rw-r--r-- | web/react/utils/text_formatting.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/utils/text_formatting.jsx b/web/react/utils/text_formatting.jsx index 2025e16da..54d010dbf 100644 --- a/web/react/utils/text_formatting.jsx +++ b/web/react/utils/text_formatting.jsx @@ -56,7 +56,7 @@ function autolinkUrls(text, tokens) { const linkText = match.getMatchedText(); let url = linkText; - if (!url.lastIndexOf('http', 0) === 0) { + if (url.lastIndexOf('http', 0) !== 0) { url = `http://${linkText}`; } |