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.
2 parents 26dfd06 + df4cae5 commit 05fc6deCopy full SHA for 05fc6de
htmlify.pl
@@ -425,7 +425,10 @@ (Bool :$debug, Bool :$typegraph = False)
425
say 'Writing html/js/search.js ...';
426
my $template = slurp("template/search_template.js");
427
my @items;
428
- my sub fix-url ($raw) { $raw.substr(1) ~ '.html' };
+ my sub fix-url ($raw) {
429
+ $raw ~~ /^.(.*?)('#'.*)?$/;
430
+ $0 ~ '.html' ~ ($1||'')
431
+ };
432
@items.push: $dr.lookup('language', :by<kind>).sort(*.name).map({
433
"\{ label: \"Language: {.name}\", value: \"{.name}\", url: \"{ fix-url(.url) }\" \}"
434
});
0 commit comments