diff options
-rw-r--r-- | src/util/external-links.js | 21 | ||||
-rw-r--r-- | tap-snapshots/test/snapshot/linkExternal.js.test.cjs | 12 |
2 files changed, 27 insertions, 6 deletions
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 @@ -456,6 +456,21 @@ export const externalLinkSpec = [ }, { + match: {domain: 'tumblr.com'}, + + platform: 'tumblr', + handle: {pathname: /^[^/]+\/?$/}, + + icon: 'tumblr', + }, + + { + match: {domain: 'tumblr.com'}, + platform: 'tumblr', + icon: 'tumblr', + }, + + { match: {domain: 'twitch.tv'}, platform: 'twitch', @@ -474,6 +489,12 @@ export const externalLinkSpec = [ }, { + match: {domain: 'twitter.com'}, + platform: 'twitter', + icon: 'twitter', + }, + + { match: {domains: ['wikipedia.org', '.wikipedia.org']}, platform: 'wikipedia', icon: 'misc', diff --git a/tap-snapshots/test/snapshot/linkExternal.js.test.cjs b/tap-snapshots/test/snapshot/linkExternal.js.test.cjs index 553ad792..6bf7bd14 100644 --- a/tap-snapshots/test/snapshot/linkExternal.js.test.cjs +++ b/tap-snapshots/test/snapshot/linkExternal.js.test.cjs @@ -113,13 +113,13 @@ exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context <a href="https://www.tiktok.com/@richaadeb" class="nowrap">richaadeb</a> <a href="https://aeritus.tumblr.com/" class="nowrap">aeritus</a> <a href="https://vol5anthology.tumblr.com/post/159528808107/hey-everyone-its-413-and-that-means-we-have" class="nowrap">vol5anthology</a> -<a href="https://www.tumblr.com/electricwestern" class="nowrap">tumblr.com</a> -<a href="https://www.tumblr.com/spellmynamewithabang/142767566733/happy-413-this-is-the-first-time-anyones-heard" class="nowrap">tumblr.com</a> +<a href="https://www.tumblr.com/electricwestern" class="nowrap">electricwestern</a> +<a href="https://www.tumblr.com/spellmynamewithabang/142767566733/happy-413-this-is-the-first-time-anyones-heard" class="nowrap">Tumblr</a> <a href="https://www.twitch.tv/ajhebard" class="nowrap">ajhebard</a> <a href="https://www.twitch.tv/vargskelethor/" class="nowrap">vargskelethor/</a> <a href="https://twitter.com/awkwarddoesart" class="nowrap">awkwarddoesart</a> <a href="https://twitter.com/purenonsens/" class="nowrap">purenonsens</a> -<a href="https://twitter.com/circlejourney/status/1202265927183548416" class="nowrap">twitter.com</a> +<a href="https://twitter.com/circlejourney/status/1202265927183548416" class="nowrap">Twitter</a> <a href="https://en.wikipedia.org/wiki/Haydn_Quartet_(vocal_ensemble)" class="nowrap">Wikipedia</a> <a href="https://youtube.com/@bani-chan8949" class="nowrap">bani-chan8949</a> <a href="https://www.youtube.com/@Razzie16" class="nowrap">Razzie16</a> @@ -171,13 +171,13 @@ exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context <a href="https://www.tiktok.com/@richaadeb" class="nowrap">TikTok</a> <a href="https://aeritus.tumblr.com/" class="nowrap">Tumblr</a> <a href="https://vol5anthology.tumblr.com/post/159528808107/hey-everyone-its-413-and-that-means-we-have" class="nowrap">Tumblr</a> -<a href="https://www.tumblr.com/electricwestern" class="nowrap">tumblr.com</a> -<a href="https://www.tumblr.com/spellmynamewithabang/142767566733/happy-413-this-is-the-first-time-anyones-heard" class="nowrap">tumblr.com</a> +<a href="https://www.tumblr.com/electricwestern" class="nowrap">Tumblr</a> +<a href="https://www.tumblr.com/spellmynamewithabang/142767566733/happy-413-this-is-the-first-time-anyones-heard" class="nowrap">Tumblr</a> <a href="https://www.twitch.tv/ajhebard" class="nowrap">Twitch</a> <a href="https://www.twitch.tv/vargskelethor/" class="nowrap">Twitch</a> <a href="https://twitter.com/awkwarddoesart" class="nowrap">Twitter</a> <a href="https://twitter.com/purenonsens/" class="nowrap">Twitter</a> -<a href="https://twitter.com/circlejourney/status/1202265927183548416" class="nowrap">twitter.com</a> +<a href="https://twitter.com/circlejourney/status/1202265927183548416" class="nowrap">Twitter</a> <a href="https://en.wikipedia.org/wiki/Haydn_Quartet_(vocal_ensemble)" class="nowrap">Wikipedia</a> <a href="https://youtube.com/@bani-chan8949" class="nowrap">YouTube</a> <a href="https://www.youtube.com/@Razzie16" class="nowrap">YouTube</a> |