From b7b3f25f84491fabd63d54e1058ee90a70e05243 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Mon, 24 Jan 2022 14:55:12 +0100 Subject: [PATCH] CATEGORIES and FULLPKGPATH almost the same FULLKPGPATH can contain ',', that's the only difference that makes sense. --- lib/PortsReadmes.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PortsReadmes.pm b/lib/PortsReadmes.pm index fe14f24..3ed269e 100644 --- a/lib/PortsReadmes.pm +++ b/lib/PortsReadmes.pm @@ -40,7 +40,7 @@ get '/packages' => sub { template 'packages', $e; }; -get qr{/cat/([\w\-\/\.]+)} => sub { +get qr{/cat/([\w\-\/\.\+]+)} => sub { my ($cat) = splat; my $e = SqlPorts->category($cat); make_title($e, "category $cat"); @@ -48,7 +48,7 @@ get qr{/cat/([\w\-\/\.]+)} => sub { template 'category', $e; }; -get qr{/path/([\w\-\/\.,\+]+)} => sub { +get qr{/path/([\w\-\/\.\+,]+)} => sub { my ($p) = splat; my $e = SqlPorts->pkgpath($p); if (defined $e) {