Skip to content

Commit 96cfb62

Browse files
committedJan 17, 2024
fix: normalize name path before splitting
1 parent 598d6d5 commit 96cfb62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎server/modelpath.go

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ func ParseModelPath(name string) ModelPath {
4646
name = after
4747
}
4848

49+
name = strings.ReplaceAll(name, string(os.PathSeparator), "/")
4950
parts := strings.Split(name, "/")
5051
switch len(parts) {
5152
case 3:

0 commit comments

Comments
 (0)