From 3989d93998683167fe61c800f884b68f1467be05 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 30 Mar 2024 11:04:41 -0300 Subject: external-links, test: fix up Tumblr, Twitter --- src/util/external-links.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/util') diff --git a/src/util/external-links.js b/src/util/external-links.js index 512ac165..9130cacc 100644 --- a/src/util/external-links.js +++ b/src/util/external-links.js @@ -455,6 +455,21 @@ export const externalLinkSpec = [ icon: 'tumblr', }, + { + match: {domain: 'tumblr.com'}, + + platform: 'tumblr', + handle: {pathname: /^[^/]+\/?$/}, + + icon: 'tumblr', + }, + + { + match: {domain: 'tumblr.com'}, + platform: 'tumblr', + icon: 'tumblr', + }, + { match: {domain: 'twitch.tv'}, @@ -473,6 +488,12 @@ export const externalLinkSpec = [ icon: 'twitter', }, + { + match: {domain: 'twitter.com'}, + platform: 'twitter', + icon: 'twitter', + }, + { match: {domains: ['wikipedia.org', '.wikipedia.org']}, platform: 'wikipedia', -- cgit 1.3.0-6-gf8a5