From 849213e3c17a83e8809ee301296db7e32552defc Mon Sep 17 00:00:00 2001 From: foxxyz Date: Wed, 21 Jul 2021 20:30:40 -0700 Subject: [PATCH] doc: simplify linkModule parsing by moving into regex --- tools/doc/allhtml.mjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/doc/allhtml.mjs b/tools/doc/allhtml.mjs index 822d6c482d2f5a..8c2135dc8cbc8f 100644 --- a/tools/doc/allhtml.mjs +++ b/tools/doc/allhtml.mjs @@ -53,9 +53,8 @@ for (const link of toc.match(//g)) { return ` { + .replace(/ { if (!htmlFiles.includes(href)) return match; - const linkModule = href.replace(/\.html$/, ''); return `