upstream #1

Merged
jblu merged 1007 commits from upstream into main 2024-11-04 22:35:57 -06:00
Showing only changes of commit b6dabfb653 - Show all commits

View File

@ -17,7 +17,8 @@ const components = {
} }
const SocialIcon = ({ kind, href, size = 8 }) => { const SocialIcon = ({ kind, href, size = 8 }) => {
if (!href) return null if (!href || (kind === 'mail' && !/^mailto:\w+([.-]?\w+)@\w+([.-]?\w+)(.\w{2,3})+$/.test(href)))
return null
const SocialSvg = components[kind] const SocialSvg = components[kind]