aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-02-11 04:45:04 +0700
committerShulhan <ms@kilabit.info>2026-02-11 21:45:06 +0700
commitc92d49c41e27d50a36fd6eba0824331606627132 (patch)
tree3a2764192e5805d7bfafebdd6a1a79676ddd6e2e
parentded0c89eea2ff0193f7916db35e3f600d24842ff (diff)
downloadjarink-c92d49c41e27d50a36fd6eba0824331606627132.tar.xz
brokenlinks: skip processing "mailto:" URL
-rw-r--r--brokenlinks/worker.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/brokenlinks/worker.go b/brokenlinks/worker.go
index cf41c49..082dc11 100644
--- a/brokenlinks/worker.go
+++ b/brokenlinks/worker.go
@@ -413,6 +413,9 @@ func (wrk *worker) processLink(parentUrl *url.URL, val string, kind int) (
// Ignore link to ID, like `href="#element_id"`.
return nil
}
+ if strings.HasPrefix(val, `mailto:`) {
+ return nil
+ }
if !strings.HasPrefix(val, `http`) {
if val[0] == '/' {
// val is absolute link.