mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 No longer replace \ with / in paths
This commit is contained in:
parent
dd3e738c9c
commit
4ce17604ea
1 changed files with 0 additions and 1 deletions
|
|
@ -39,7 +39,6 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TrimSpaceInPath(p string) string {
|
func TrimSpaceInPath(p string) string {
|
||||||
p = strings.ReplaceAll(p, "\\", "/")
|
|
||||||
parts := strings.Split(p, "/")
|
parts := strings.Split(p, "/")
|
||||||
for i, part := range parts {
|
for i, part := range parts {
|
||||||
parts[i] = strings.TrimSpace(part)
|
parts[i] = strings.TrimSpace(part)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue