From 8434168a8481d1c09f216b83a173b6ad3209bff1 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 30 Mar 2024 13:18:55 -0300 Subject: external-links: MSPFA --- src/strings-default.yaml | 1 + src/util/external-links.js | 6 ++++++ tap-snapshots/test/snapshot/linkExternal.js.test.cjs | 6 ++++++ test/snapshot/linkExternal.js | 5 +++++ 4 files changed, 18 insertions(+) diff --git a/src/strings-default.yaml b/src/strings-default.yaml index be747f8f..27af2797 100644 --- a/src/strings-default.yaml +++ b/src/strings-default.yaml @@ -546,6 +546,7 @@ misc: kofi: "Ko-fi" linktree: "Linktree" mastodon: "Mastodon" + mspfa: "MSPFA" neocities: "Neocities" newgrounds: "Newgrounds" patreon: "Patreon" diff --git a/src/util/external-links.js b/src/util/external-links.js index 52309d90..6f8e108b 100644 --- a/src/util/external-links.js +++ b/src/util/external-links.js @@ -461,6 +461,12 @@ export const externalLinkSpec = [ icon: 'mastodon', }, + { + match: {domains: ['mspfa.com', '.mspfa.com']}, + platform: 'mspfa', + icon: 'globe', + }, + { match: {domain: '.neocities.org'}, diff --git a/tap-snapshots/test/snapshot/linkExternal.js.test.cjs b/tap-snapshots/test/snapshot/linkExternal.js.test.cjs index a4189f77..55031c66 100644 --- a/tap-snapshots/test/snapshot/linkExternal.js.test.cjs +++ b/tap-snapshots/test/snapshot/linkExternal.js.test.cjs @@ -109,6 +109,9 @@ exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context gnaach bbpanzu types.pl +MSPFA +MSPFA +MSPFA wodaro.neocities.org neomints.neocities.org buzinkai @@ -180,6 +183,9 @@ exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context Ko-fi Linktree Mastodon (types.pl) +MSPFA +MSPFA +MSPFA Neocities Neocities Newgrounds diff --git a/test/snapshot/linkExternal.js b/test/snapshot/linkExternal.js index 3d759ff1..18f32907 100644 --- a/test/snapshot/linkExternal.js +++ b/test/snapshot/linkExternal.js @@ -121,6 +121,11 @@ testContentFunctions(t, 'linkExternal (snapshot)', async (t, evaluate) => { // platform: mastodon 'https://types.pl/', + // platform: mspfa + 'https://canwc.mspfa.com/', + 'https://mspfa.com/?s=12003&p=1045', + 'https://mspfa.com/user/?u=103334508819793669241', + // platform: neocities 'https://wodaro.neocities.org', 'https://neomints.neocities.org/', -- cgit 1.3.0-6-gf8a5