Fix backslashes being accepted by sanitizeArtifactName

This commit is contained in:
Michael B. Gale
2025-06-04 12:27:55 +01:00
parent 7fd62151d9
commit 1eab40885f
6 changed files with 9 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ import {
} from "./util";
export function sanitizeArtifactName(name: string): string {
return name.replace(/[^a-zA-Z0-9_\\-]+/g, "");
return name.replace(/[^a-zA-Z0-9_-]+/g, "");
}
/**