Skip to content

Commit 125c287

Browse files
committed
doc: use less fragile module filename parse
1 parent df5ad92 commit 125c287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/doc/allhtml.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ for (const link of toc.match(/<a.*?>/g)) {
5555
// Prefix all links to other docs modules with those module names
5656
.replace(/<a href="(\w[^#"]*)#/g, (match, href) => {
5757
if (!htmlFiles.includes(href)) return match;
58-
const linkModule = href.split('.')[0];
58+
const linkModule = href.replace(/\.html$/, '');
5959
return `<a href="#${linkModule}_`;
6060
})
6161
.trim() + '\n';

0 commit comments

Comments
 (0)