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