allow colon in filenames

This commit is contained in:
natasha41575
2022-07-28 14:52:24 -05:00
parent c4b4a41913
commit 9a6aad3ae4
2 changed files with 7 additions and 1 deletions

View File

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