We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7501b2c + f4476ba commit a2fde6dCopy full SHA for a2fde6d
components/social-icons/index.tsx
@@ -31,7 +31,10 @@ type SocialIconProps = {
31
}
32
33
const SocialIcon = ({ kind, href, size = 8 }: SocialIconProps) => {
34
- if (!href || (kind === 'mail' && !/^mailto:\w+([.-]?\w+)@\w+([.-]?\w+)(.\w{2,3})+$/.test(href)))
+ if (
35
+ !href ||
36
+ (kind === 'mail' && !/^mailto:[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(href))
37
+ )
38
return null
39
40
const SocialSvg = components[kind]
0 commit comments