Skip to content

Commit c825756

Browse files
committed
chore: fix readapi error
1 parent a76d570 commit c825756

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/readApi.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ function extractTableFromMd(mdContent, filePath) {
9696
tableData.push({
9797
title:
9898
'Pro' +
99-
capitalizeFirstLetter(filePath.split('/').at(1)) +
99+
capitalizeFirstLetter(filePath.split(path.sep).at(1)) +
100100
' - ' +
101101
tableTitle?.replace(/\n/g, '').trim(),
102102
table: tableRows,
103103
});
104104
});
105105
return {
106-
packageName: 'Pro' + capitalizeFirstLetter(filePath.split('/').at(1)),
106+
packageName: 'Pro' + capitalizeFirstLetter(filePath.split(path.sep).at(1)),
107107
tableData,
108108
};
109109
}

0 commit comments

Comments
 (0)