kamilsk / check

🔬 Tool to check something.
MIT License
7 stars 0 forks source link

ignore mailto: links #33

Closed kamilsk closed 6 years ago

kamilsk commented 6 years ago

also try to ignore some invalid urls like tel:XXX and other target specific

kamilsk commented 6 years ago

fmt.Println(el.Request.AbsoluteURL("mailto:test@my.email")) -> mailto:test@my.email

kamilsk commented 6 years ago
{Href: "mailto:test@my.email", Text: "test@my.email"}, // ErrorEvent{Error:&url.Error{URL:"mailto:test@my.email", Err:&http.badStringError{what:"unsupported protocol scheme", str:"mailto"}}}
{Href: "tel:+01234567", Text: "+01234567"},            // ErrorEvent{Error:&url.Error{URL:"tel:+01234567", Err:&http.badStringError{what:"unsupported protocol scheme", str:"tel"}}}