Skip to content

Commit

Permalink
Fix broken regex in api docs creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Electron committed Nov 22, 2023
1 parent 173d24b commit 6ae5755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/build/apis/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function resolveSidebarPaths(category) {
}

function generateDirectoryPath(basePath, label) {
const directoryName = label.toLowerCase().replaceAll(/s+/g, '-');
const directoryName = label.toLowerCase().replaceAll(/ +/g, '-');
const directoryPath = path.join(__dirname, basePath, directoryName);
return directoryPath;
}
Expand Down

0 comments on commit 6ae5755

Please sign in to comment.