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

@@ -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