From: Marius Gavrilescu Date: Wed, 29 Jan 2014 10:14:51 +0000 (+0200) Subject: Fix contest-matching regex in Pb::Entry X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=adfcbf49c9a50ffc4d6f273a5837c0108125b55c;p=gruntmaster-page.git Fix contest-matching regex in Pb::Entry --- diff --git a/lib/Gruntmaster/Page/Pb/Entry.pm b/lib/Gruntmaster/Page/Pb/Entry.pm index 0516053..f2fa962 100644 --- a/lib/Gruntmaster/Page/Pb/Entry.pm +++ b/lib/Gruntmaster/Page/Pb/Entry.pm @@ -31,7 +31,7 @@ HTML sub _generate{ my ($self, $htc, $path, $lang) = @_; - $path =~ m,(?:ct/([^/])+/)?pb/(\w+)\.html$,; + $path =~ m,(?:ct/([^/]+)/)?pb/(\w+)\.html$,; my ($contest, $id) = ($1, $2);