Skip to content

Commit da91db8

Browse files
committed
make L<IO::Spec> work with filename-rewrite
1 parent 901db16 commit da91db8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

htmlify.p6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ sub MAIN(
192192
if $sparse || !$search-file || !$disambiguation {
193193
say "This is a sparse or incomplete run. DO NOT SYNC WITH doc.perl6.org!";
194194
}
195-
195+
196196
spurt('html/links.txt', @__URLS.sort.unique.join("\n"));
197197
}
198198

lib/Pod/Htmlify.pm6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ sub rewrite-url($s) is export {
4242
}
4343

4444
when / ^ <[A..Z]> / {
45-
$r = "/type/{uri_unescape($s)}";
45+
$r = "/type/{escape-filename(uri_unescape($s))}";
4646
succeed;
4747
}
4848

4949
when / ^ <[a..z]> | ^ <-alpha>* $ / {
50-
$r = "/routine/{uri_unescape($s)}";
50+
$r = "/routine/{escape-filename(uri_unescape($s))}";
5151
succeed;
5252
}
5353

0 commit comments

Comments
 (0)