mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Remove invisible characters from file names when uploading assets https://github.com/siyuan-note/siyuan/issues/11683
This commit is contained in:
@@ -242,6 +242,7 @@ func FilterFileName(name string) string {
|
||||
name = strings.ReplaceAll(name, ">", "")
|
||||
name = strings.ReplaceAll(name, "|", "")
|
||||
name = strings.TrimSpace(name)
|
||||
name = gulu.Str.RemoveInvisible(name) // Remove invisible characters from file names when uploading assets https://github.com/siyuan-note/siyuan/issues/11683
|
||||
return name
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user