Merge pull request #716 from hmhealey/plt299

PLT-299 Fixed incorrect check if a url starts with an explicit protocol
Этот коммит содержится в:
Corey Hulen
2015-09-18 09:22:20 -07:00
родитель d0f97b7a5f bc8e69d99f
Коммит 7caef4a7a7

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

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