mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
This commit is contained in:
parent
1503363a7c
commit
e98bb0a2d4
1 changed files with 1 additions and 1 deletions
|
|
@ -724,7 +724,7 @@ func RenameAsset(oldPath, newName string) (newPath string, err error) {
|
||||||
defer util.PushClearProgress()
|
defer util.PushClearProgress()
|
||||||
|
|
||||||
newName = strings.TrimSpace(newName)
|
newName = strings.TrimSpace(newName)
|
||||||
newName = util.FilterFileName(newName)
|
newName = util.FilterUploadFileName(newName)
|
||||||
if path.Base(oldPath) == newName {
|
if path.Base(oldPath) == newName {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue