Browse Source

fix: ignore mailto links from processing (#1041)

pull/1066/head
Nick 5 years ago
parent
commit
06250c4f03
1 changed files with 1 additions and 1 deletions
  1. 2
      server/modules/rendering/html-core/renderer.js

2
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
}

Loading…
Cancel
Save