We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ffb148 commit 3f65e0fCopy full SHA for 3f65e0f
src/build/mdn-comments.ts
@@ -51,7 +51,7 @@ function extractSummary(markdown: string): string {
51
52
async function walkDirectory(dir: URL): Promise<URL[]> {
53
const entries = await fs.readdir(dir, { withFileTypes: true });
54
- const parentDirName = dir.pathname.split("/").filter(Boolean).slice(-1)[0];
+ const parentDirName = dir.pathname.split("/").at(-1);
55
let results: URL[] = [];
56
57
for (const entry of entries) {
0 commit comments