Unverified Commit d5a73533 authored by Michael Yang's avatar Michael Yang Committed by GitHub
Browse files

Merge pull request #2026 from jmorganca/mxyng/fix-windows

fix: normalize name path before splitting
parents 7d00b5d1 96cfb626
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment