Skip to content

Commit

Permalink
replace chars with underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundhung committed Feb 17, 2025
1 parent c5dd5d3 commit c8e2e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest-pool-workers/src/pool/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ interface Project {
const allProjects = new Map<string /* projectName */, Project>();

function getRunnerName(project: WorkspaceProject, testFile?: string) {
const name = `${WORKER_NAME_PREFIX}runner-${encodeURIComponent(project.getName().replace("@", "-at-").replace("/", "-"))}`;
const name = `${WORKER_NAME_PREFIX}runner-${project.getName().replace(/[^a-z0-9-]/gi, "_")}`;
if (testFile === undefined) {
return name;
}
Expand Down

0 comments on commit c8e2e8e

Please sign in to comment.