diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-09-18 11:56:23 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-09-18 11:56:23 -0400 |
commit | bc8e69d99f5b7b22fd1b781fa1862c24e0de0b90 (patch) | |
tree | 97e48b0429650dd205661c92a2a5270b6f7f11c5 | |
parent | 6eb32591d978240fb77696f0b8697e81832883bb (diff) | |
download | chat-bc8e69d99f5b7b22fd1b781fa1862c24e0de0b90.tar.gz chat-bc8e69d99f5b7b22fd1b781fa1862c24e0de0b90.tar.bz2 chat-bc8e69d99f5b7b22fd1b781fa1862c24e0de0b90.zip |
Fixed incorrect check if a url starts with an explicit protocol
-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}`; } |