mirror of
https://github.com/github/codeql-action.git
synced 2026-01-04 21:50:17 +08:00
Fix backslashes being accepted by sanitizeArtifactName
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
|
||||
|
||||
Reference in New Issue
Block a user