fix: normalize name path before splitting

This commit is contained in:
Michael Yang 2024-01-16 16:48:05 -08:00
parent 598d6d5572
commit 96cfb62641

View file

@ -46,6 +46,7 @@ func ParseModelPath(name string) ModelPath {
name = after
}
name = strings.ReplaceAll(name, string(os.PathSeparator), "/")
parts := strings.Split(name, "/")
switch len(parts) {
case 3: