...SplitN, not SplitAfterN
This commit is contained in:
@@ -62,7 +62,7 @@ func ExpandHome(path *string) (err error) {
|
||||
}
|
||||
*/
|
||||
// K but do it smarter.
|
||||
unameSplit = strings.SplitAfterN(*path, string(os.PathSeparator), 2)
|
||||
unameSplit = strings.SplitN(*path, string(os.PathSeparator), 2)
|
||||
if len(unameSplit) != 2 {
|
||||
unameSplit = append(unameSplit, "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user