From 77509c41292c1caef8899f75fe12a6910f17d1b8 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 20 Aug 2024 20:52:12 +0200 Subject: browser_launcher.pl: Add ssh git URL support Signed-off-by: Florian Pritz --- browser_launcher.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/browser_launcher.pl b/browser_launcher.pl index 3bc2dfe..a77dc2a 100755 --- a/browser_launcher.pl +++ b/browser_launcher.pl @@ -14,6 +14,12 @@ use autodie qw(:all); use Text::Template 'fill_in_string'; my $sites = { + 'ssh-git' => { + 'patterns' => [ + qr|^ssh://(?:(?\w+)@)?(?[\w.]+)(?::(?\d+))?/(?.*)\.git|, + ], + 'command' => ['firefox', 'https://{$domain}/{$path}'], + }, 'youtube' => { 'patterns' => [ qr|^https://www.youtube.com|, -- cgit v1.2.3-24-g4f1b