Fixed incorrect check if a url starts with an explicit protocol
Этот коммит содержится в:
@@ -56,7 +56,7 @@ function autolinkUrls(text, tokens) {
|
|||||||
const linkText = match.getMatchedText();
|
const linkText = match.getMatchedText();
|
||||||
let url = linkText;
|
let url = linkText;
|
||||||
|
|
||||||
if (!url.lastIndexOf('http', 0) === 0) {
|
if (url.lastIndexOf('http', 0) !== 0) {
|
||||||
url = `http://${linkText}`;
|
url = `http://${linkText}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user