Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Match .pl/.p6 at the end of the filename
  • Loading branch information
Paul Cochrane committed Apr 10, 2015
1 parent d0ad0ef commit aa6eb51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Pod/Htmlify.pm6
Expand Up @@ -159,7 +159,7 @@ class Website is export {
my $pod = format-author-heading($example);
$pod.push: source-reference($file, $category-key);
$pod.push: source-without-pod($file);
my $html-file = $file.IO.basename.subst(/\.p(l|6)/, ".html");
my $html-file = $file.IO.basename.subst(/\.p(l|6)$/, ".html");
$html-file = $!base-html-dir ~ "/categories/$category-key/" ~ $html-file;
spurt $html-file, self.p2h($pod);
}
Expand All @@ -175,7 +175,7 @@ class Website is export {
my $pod = format-author-heading($example);
$pod.push: source-reference($file, $subcategory-key);
$pod.push: source-without-pod($file);
my $html-file = $file.IO.basename.subst(/\.p(l|6)/, ".html");
my $html-file = $file.IO.basename.subst(/\.p(l|6)$/, ".html");
$html-file = $!base-html-dir ~ "/categories/$category-key/$subcategory-key/" ~ $html-file;
spurt $html-file, self.p2h($pod);
}
Expand Down

0 comments on commit aa6eb51

Please sign in to comment.