diff --git a/docs/build/apis/sidebars.js b/docs/build/apis/sidebars.js index d0d51854227..9b23147e54b 100644 --- a/docs/build/apis/sidebars.js +++ b/docs/build/apis/sidebars.js @@ -16,7 +16,7 @@ function resolveSidebarPaths(category) { } function generateDirectoryPath(basePath, label) { - const directoryName = label.toLowerCase().replaceAll(/s+/g, '-'); + const directoryName = label.toLowerCase().replaceAll(/\s+/g, '-'); const directoryPath = path.join(__dirname, basePath, directoryName); return directoryPath; }