summaryrefslogtreecommitdiffstats
path: root/web/react
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-09-18 09:22:20 -0700
committerCorey Hulen <corey@hulen.com>2015-09-18 09:22:20 -0700
commit7caef4a7a7287433ed274c4f20d3593ea4065b66 (patch)
tree46f8dbf3dbc1f4f62ee364c83e99605dc88a46dd /web/react
parentd0f97b7a5f730706337e7884a7e697d80dc0a96c (diff)
parentbc8e69d99f5b7b22fd1b781fa1862c24e0de0b90 (diff)
downloadchat-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')
-rw-r--r--web/react/utils/text_formatting.jsx2
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}`;
}