diff --git a/server/projects.js b/server/projects.js index ff5aa25bb..9976754af 100755 --- a/server/projects.js +++ b/server/projects.js @@ -992,7 +992,7 @@ async function addProjectManually(projectPath, displayName = null) { } // Generate project name (encode path for use as directory name) - const projectName = absolutePath.replace(/\//g, '-'); + const projectName = absolutePath.replace(/[^a-zA-Z0-9]/g, '-'); // Check if project already exists in config const config = await loadProjectConfig();