Skip to content

Commit

Permalink
allow insecure mailto and tel protocols in base-link
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvfritz committed Dec 19, 2018
1 parent 6962602 commit c5bc02c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/_base-link.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default {
)
}
// Check for insecure URL in href.
if (!this.allowInsecure && !/^https/.test(this.href)) {
if (!this.allowInsecure && !/^(https|mailto|tel):/.test(this.href)) {
return console.warn(
`Insecure <BaseLink> href: ${
this.href
Expand Down

0 comments on commit c5bc02c

Please sign in to comment.