mirror of
https://github.com/github/codeql-action.git
synced 2025-12-28 02:00:12 +08:00
Merge branch 'main' into henrymercer/bump-minimum-codeql-2.16.6
This commit is contained in:
@@ -18,6 +18,10 @@ test("sanitizeArtifactName", (t) => {
|
||||
debugArtifacts.sanitizeArtifactName("*m)a&n^y%i££n+v!a:l[i]d"),
|
||||
"manyinvalid",
|
||||
);
|
||||
t.deepEqual(
|
||||
debugArtifacts.sanitizeArtifactName("\\foo\\bar//baz"),
|
||||
"foobarbaz",
|
||||
);
|
||||
});
|
||||
|
||||
// These next tests check the correctness of the logic to determine whether or not
|
||||
|
||||
@@ -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, "");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"bundleVersion": "codeql-bundle-v2.21.3",
|
||||
"cliVersion": "2.21.3",
|
||||
"priorBundleVersion": "codeql-bundle-v2.21.2",
|
||||
"priorCliVersion": "2.21.2"
|
||||
"bundleVersion": "codeql-bundle-v2.21.4",
|
||||
"cliVersion": "2.21.4",
|
||||
"priorBundleVersion": "codeql-bundle-v2.21.3",
|
||||
"priorCliVersion": "2.21.3"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user