Skip to content

Commit 9ed120d

Browse files
authored
Update mdn-comments.ts
1 parent 4008574 commit 9ed120d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/build/mdn-comments.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function extractSummary(markdown: string): string {
5050
return normalizedText.split(" ")[0] || ""; // Fallback: first word if no sentence found
5151
}
5252

53-
async function getFolders(dirPath: URL): Promise<URL[]> {
53+
async function getDirectories(dirPath: URL): Promise<URL[]> {
5454
try {
5555
const entries = await fs.readdir(dirPath, {
5656
withFileTypes: true,
@@ -94,7 +94,7 @@ async function getIndexMdContents(
9494

9595
export async function generateDescription(): Promise<Record<string, string>> {
9696
try {
97-
const folders = await getFolders(basePath);
97+
const folders = await getDirectories(basePath);
9898
if (folders.length > 0) {
9999
return await getIndexMdContents(folders);
100100
}

0 commit comments

Comments
 (0)