Commit 065ef26b authored by Kevin Lyda's avatar Kevin Lyda 💬
Browse files

Add a comment for ExpandTilde.

parent 09b0c363
Pipeline #1175 failed with stage
in 2 minutes and 51 seconds
......@@ -28,6 +28,7 @@ func setDefaults() {
viper.SetDefault("validateTLSCertificate", true)
}
// Expand ~ and ~user for a given path.
func ExpandTilde(path string) string {
re := regexp.MustCompile("^~([^/]*)(/.*)")
if m := re.FindStringSubmatch(path); len(m) > 0 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment