Skip to content

Commit

Permalink
CATEGORIES and FULLPKGPATH almost the same
Browse files Browse the repository at this point in the history
FULLKPGPATH can contain ',', that's the only difference
that makes sense.
  • Loading branch information
Marc Espie committed Jan 24, 2022
1 parent 589b4e5 commit b7b3f25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/PortsReadmes.pm
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ 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");

template 'category', $e;
};

get qr{/path/([\w\-\/\.,\+]+)} => sub {
get qr{/path/([\w\-\/\.\+,]+)} => sub {
my ($p) = splat;
my $e = SqlPorts->pkgpath($p);
if (defined $e) {
Expand Down

0 comments on commit b7b3f25

Please sign in to comment.