Skip to content

Commit

Permalink
FeaturePanel: Make email addreses clickable (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dlurak authored Sep 22, 2024
1 parent 0403f9e commit 36f4f09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/FeaturePanel/Properties/getUrlForTag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ export const getUrlForTag = (k: string, v: string) => {
if (k === 'website') {
return v.match(urlRegExp) ? v : `http://${v}`;
}
if (k.match(/^(contact:)?email$/)) {
return `mailto:${v}`;
}
if (v.match(urlRegExp)) {
return v;
}
Expand Down

0 comments on commit 36f4f09

Please sign in to comment.