We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55e2109 commit 162b8dfCopy full SHA for 162b8df
server/service/sys_auto_code.go
@@ -80,7 +80,7 @@ func PreviewTemp(autoCode model.AutoCodeStruct) (map[string]string, error) {
80
builder.Write(data)
81
builder.WriteString("\n\n```")
82
83
- pathArr := strings.Split(value.autoCodePath, "\\")
+ pathArr := strings.Split(value.autoCodePath, string(os.PathSeparator))
84
ret[pathArr[1]+"-"+pathArr[3]] = builder.String()
85
_ = f.Close()
86
0 commit comments