From db9f6ed60c56498a4c6e8e4fac727442029d4f2b Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Wed, 11 Sep 2024 05:16:57 +0200 Subject: [PATCH] Added optional URL query to all external hosts in link dissection. --- src/dissectLink.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/dissectLink.js b/src/dissectLink.js index ef61914..0ee0e11 100644 --- a/src/dissectLink.js +++ b/src/dissectLink.js @@ -9,7 +9,7 @@ const hosts = [{ }, { method: 'redditImage', label: 'reddit', - pattern: new UrlPattern('http(s)\\://i.redd.it/:id.:ext'), + pattern: new UrlPattern('http(s)\\://i.redd.it/:id.:ext(?*)'), }, { method: 'redditImage', label: 'reddit', @@ -17,7 +17,7 @@ const hosts = [{ }, { method: 'redditVideo', label: 'reddit', - pattern: new UrlPattern('http(s)\\://v.redd.it/:id'), + pattern: new UrlPattern('http(s)\\://v.redd.it/:id(?*)'), }, { method: 'imgurImage', label: 'imgur', @@ -25,23 +25,23 @@ const hosts = [{ }, { method: 'imgurAlbum', label: 'imgur', - pattern: new UrlPattern('http(s)\\://(:subdomain.)imgur.com/:type/:id(#:focus)'), + pattern: new UrlPattern('http(s)\\://(:subdomain.)imgur.com/:type/:id(#:focus)(?*)'), }, { method: 'vidbleImage', label: 'vidble', - pattern: new UrlPattern('http(s)\\://(www.)vidble.com/(show/):id(.:ext)'), + pattern: new UrlPattern('http(s)\\://(www.)vidble.com/(show/):id(.:ext)(?*)'), }, { method: 'vidbleVideo', label: 'vidble', - pattern: new UrlPattern('http(s)\\://(www.)vidble.com/watch?v=:id'), + pattern: new UrlPattern('http(s)\\://(www.)vidble.com/watch?v=:id(?*)'), }, { method: 'vidbleAlbum', label: 'vidble', - pattern: new UrlPattern('http(s)\\://(www.)vidble.com/album/:id'), + pattern: new UrlPattern('http(s)\\://(www.)vidble.com/album/:id(?*)'), }, { method: 'gfycat', label: 'gfycat', - pattern: new UrlPattern('http(s)\\://(:server.)gfycat.com/(gifs/detail/)(:id-mobile)(:id-size_restricted)(:id)(.:ext)'), + pattern: new UrlPattern('http(s)\\://(:server.)gfycat.com/(gifs/detail/)(:id-mobile)(:id-size_restricted)(:id)(.:ext)(?*)'), }, { method: 'eroshareAlbum', label: 'eroshare',