summaryrefslogtreecommitdiffstats
path: root/web/react
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-09-18 11:56:23 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-09-18 11:56:23 -0400
commitbc8e69d99f5b7b22fd1b781fa1862c24e0de0b90 (patch)
tree97e48b0429650dd205661c92a2a5270b6f7f11c5 /web/react
parent6eb32591d978240fb77696f0b8697e81832883bb (diff)
downloadchat-bc8e69d99f5b7b22fd1b781fa1862c24e0de0b90.tar.gz
chat-bc8e69d99f5b7b22fd1b781fa1862c24e0de0b90.tar.bz2
chat-bc8e69d99f5b7b22fd1b781fa1862c24e0de0b90.zip
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}`;
}