From 06250c4f039b6467f9aac57e34e467e01ec43224 Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 21 Sep 2019 10:49:58 -0400 Subject: [PATCH] fix: ignore mailto links from processing (#1041) --- server/modules/rendering/html-core/renderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/rendering/html-core/renderer.js b/server/modules/rendering/html-core/renderer.js index 085b9610..1d3f88e3 100644 --- a/server/modules/rendering/html-core/renderer.js +++ b/server/modules/rendering/html-core/renderer.js @@ -32,7 +32,7 @@ module.exports = { let href = $(elm).attr('href') // -> Ignore empty / anchor links - if (!href || href.length < 1 || href.indexOf('#') === 0) { + if (!href || href.length < 1 || href.indexOf('#') === 0 || href.indexOf('mailto:') === 0) { return }