Michael Yang 1 anno fa
parent
commit
09c0972a6a
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      server/modelpath.go

+ 1 - 2
server/modelpath.go

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