We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8da79bb commit 3ba0c02Copy full SHA for 3ba0c02
lib/Pod/Htmlify.pm6
@@ -48,12 +48,12 @@ sub rewrite-url($s) is export {
48
# on-page link, we bail
49
return $s;
50
}
51
-
+ # Type
52
when / ^ <[A..Z]> / {
53
$r = "/type/{escape-filename(unescape-percent($s))}";
54
succeed;
55
56
+ # Routine
57
when / ^ <[a..z]> | ^ <-alpha>* $ / {
58
$r = "/routine/{escape-filename(unescape-percent($s))}";
59
@@ -77,7 +77,10 @@ sub rewrite-url($s) is export {
77
78
my $file-part = $r.split('#')[0] ~ '.html';
79
die "$file-part not found" unless $file-part.IO:e:f:s;
80
+ # URL's can't end with a period. So affix the suffix.
81
+ if $r.contains('#').not and $r.ends-with: '.' {
82
+ $r ~= '.html';
83
+ }
84
return %cache{$s} = $r;
85
86
0 commit comments