mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
Merge pull request #4729 from natasha41575/colonInFSName
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
|
||||
// than what's allowed on a real OS.
|
||||
|
||||
@@ -34,6 +34,12 @@ var topCases = []pathCase{
|
||||
arg: ParentDir,
|
||||
errStr: "illegal name '..' in file creation",
|
||||
},
|
||||
{
|
||||
what: "colon",
|
||||
arg: "a:b",
|
||||
name: "a:b",
|
||||
path: "a:b",
|
||||
},
|
||||
{
|
||||
what: "empty",
|
||||
arg: "",
|
||||
|
||||
Reference in New Issue
Block a user