From 125c2874bc63b7335aed271b91439a424589cf61 Mon Sep 17 00:00:00 2001 From: foxxyz Date: Tue, 20 Jul 2021 21:53:50 -0700 Subject: [PATCH] doc: use less fragile module filename parse --- tools/doc/allhtml.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/doc/allhtml.mjs b/tools/doc/allhtml.mjs index 874cc14dac22a3..21e9d341257372 100644 --- a/tools/doc/allhtml.mjs +++ b/tools/doc/allhtml.mjs @@ -55,7 +55,7 @@ for (const link of toc.match(//g)) { // Prefix all links to other docs modules with those module names .replace(/ { if (!htmlFiles.includes(href)) return match; - const linkModule = href.split('.')[0]; + const linkModule = href.replace(/\.html$/, ''); return `