mirror of
https://github.com/github/codeql-action.git
synced 2026-01-01 20:20:07 +08:00
Fix backslashes being accepted by sanitizeArtifactName
This commit is contained in:
@@ -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, "");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user