Skip to content

Commit

Permalink
doc: use stricter module name parsing
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
foxxyz and aduh95 committed Jul 21, 2021
1 parent ca7f946 commit 1c22c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/doc/allhtml.mjs
Expand Up @@ -32,7 +32,7 @@ for (const link of toc.match(/<a.*?>/g)) {
const match = /(<\/ul>\s*)?<\/\w+>\s*<\w+ id="apicontent">/.exec(data);

// Get module name
const moduleName = href.split('.')[0];
const moduleName = href.replace(/\.html$/, '');

contents += data.slice(0, match.index)
.replace(/[\s\S]*?id="toc"[^>]*>\s*<\w+>.*?<\/\w+>\s*(<ul>\s*)?/, '')
Expand Down

0 comments on commit 1c22c1c

Please sign in to comment.