Fixed incorrect check if a url starts with an explicit protocol

Этот коммит содержится в:
hmhealey
2015-09-18 11:56:23 -04:00
родитель 6eb32591d9
Коммит bc8e69d99f

Просмотреть файл

@@ -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}`;
}