Commit 96cfb626 authored by Michael Yang's avatar Michael Yang
Browse files

fix: normalize name path before splitting

parent 598d6d55
...@@ -46,6 +46,7 @@ func ParseModelPath(name string) ModelPath { ...@@ -46,6 +46,7 @@ func ParseModelPath(name string) ModelPath {
name = after name = after
} }
name = strings.ReplaceAll(name, string(os.PathSeparator), "/")
parts := strings.Split(name, "/") parts := strings.Split(name, "/")
switch len(parts) { switch len(parts) {
case 3: 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