mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 01:14:22 +00:00
allow colon in filenames
This commit is contained in:
@@ -569,7 +569,7 @@ func (n *fsNode) DebugPrint() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
var legalFileNamePattern = regexp.MustCompile("^[a-zA-Z0-9-_.]+$")
|
var legalFileNamePattern = regexp.MustCompile("^[a-zA-Z0-9-_.:]+$")
|
||||||
|
|
||||||
// This rules enforced here should be simpler and tighter
|
// This rules enforced here should be simpler and tighter
|
||||||
// than what's allowed on a real OS.
|
// than what's allowed on a real OS.
|
||||||
|
|||||||
@@ -34,6 +34,12 @@ var topCases = []pathCase{
|
|||||||
arg: ParentDir,
|
arg: ParentDir,
|
||||||
errStr: "illegal name '..' in file creation",
|
errStr: "illegal name '..' in file creation",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
what: "colon",
|
||||||
|
arg: "a:b",
|
||||||
|
name: "a:b",
|
||||||
|
path: "a:b",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
what: "empty",
|
what: "empty",
|
||||||
arg: "",
|
arg: "",
|
||||||
|
|||||||
Reference in New Issue
Block a user