Skip to content

Commit f724c4e

Browse files
committed
Fix bug in redirect generation script
1 parent d7f85e9 commit f724c4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/update-decoder-redirects.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ const decoderSigRe = /<(?:DecoderSig|Sig)\b([\s\S]*?)\/>/g;
3131
const nameAttrRe = /name="([^"]+)"/;
3232
const aliasNameRe = /name:\s*'([^']+)'/g;
3333

34-
// Regex to find ## headings
35-
const headingRe = /^## (.+)/gm;
34+
// Regex to find ## and ### headings
35+
const headingRe = /^#{2,3} (.+)/gm;
3636

3737
for (const file of mdxFiles) {
3838
const slug = file.replace(/\.mdx$/, '');

0 commit comments

Comments
 (0)