fix: ignore mailto links from processing (#1041)
This commit is contained in:
1 parent
3db491a8a4
commit
06250c4f03
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user