Merge pull request #27 from hansmartens68/fix/contact-card-strip-www
Fix contact card display: strip www. prefix from social links
This commit is contained in:
@@ -26,7 +26,7 @@ const channels = [
|
||||
...socialLinks.map((link) => ({
|
||||
icon: link.icon,
|
||||
label: link.label,
|
||||
value: link.href.replace(/^https?:\/\//, ''),
|
||||
value: link.href.replace(/^https?:\/\/(www\.)?/, ''),
|
||||
note: 'Follow along',
|
||||
href: link.href,
|
||||
external: true,
|
||||
|
||||
Reference in New Issue
Block a user