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) => ({
|
...socialLinks.map((link) => ({
|
||||||
icon: link.icon,
|
icon: link.icon,
|
||||||
label: link.label,
|
label: link.label,
|
||||||
value: link.href.replace(/^https?:\/\//, ''),
|
value: link.href.replace(/^https?:\/\/(www\.)?/, ''),
|
||||||
note: 'Follow along',
|
note: 'Follow along',
|
||||||
href: link.href,
|
href: link.href,
|
||||||
external: true,
|
external: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user