From 77bb29bfbcfe21dd6d01776f8578b2ff894076c8 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 29 Mar 2024 19:08:10 -0300 Subject: external-links: misc minor descriptor tweaks --- src/util/external-links.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/util/external-links.js b/src/util/external-links.js index e19ecbfc..c5f51393 100644 --- a/src/util/external-links.js +++ b/src/util/external-links.js @@ -383,7 +383,7 @@ export const externalLinkSpec = [ }, { - match: {domain: 'fandom.com'}, + match: {domains: ['fandom.com', '.fandom.com']}, platform: 'fandom', icon: 'globe', }, @@ -434,6 +434,15 @@ export const externalLinkSpec = [ icon: 'globe', }, + { + match: {domain: '.newgrounds.com'}, + + platform: 'newgrounds', + handle: {domain: /^[^.]+/}, + + icon: 'newgrounds', + }, + { match: {domain: 'newgrounds.com'}, platform: 'newgrounds', @@ -462,7 +471,7 @@ export const externalLinkSpec = [ }, { - match: {domain: 'spotify.com'}, + match: {domains: ['spotify.com', 'open.spotify.com']}, platform: 'spotify', icon: 'globe', }, @@ -495,7 +504,7 @@ export const externalLinkSpec = [ }, { - match: {domain: 'wikipedia.org'}, + match: {domains: ['wikipedia.org', '.wikipedia.org']}, platform: 'wikipedia', icon: 'misc', }, -- cgit 1.3.0-6-gf8a5