Added emailto: to the beginning of email links

Этот коммит содержится в:
hmhealey
2015-10-02 09:17:29 -04:00
родитель 92404d6452
Коммит fe8c04c973

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

@@ -87,8 +87,10 @@ function autolinkUrls(text, tokens) {
const linkText = match.getMatchedText();
let url = linkText;
if (url.lastIndexOf('http', 0) !== 0) {
url = `http://${linkText}`;
if (match.getType() === 'email') {
url = `mailto:${url}`;
} else if (url.lastIndexOf('http', 0) !== 0) {
url = `http://${url}`;
}
const index = tokens.size;