filepath.ToSlash
This commit is contained in:
parent
53da2c6965
commit
09c0972a6a
@ -49,8 +49,7 @@ func ParseModelPath(name string) ModelPath {
|
||||
name = after
|
||||
}
|
||||
|
||||
name = strings.ReplaceAll(name, string(os.PathSeparator), "/")
|
||||
parts := strings.Split(name, "/")
|
||||
parts := strings.Split(filepath.ToSlash(name), "/")
|
||||
switch len(parts) {
|
||||
case 3:
|
||||
mp.Registry = parts[0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user