🎨 Remove invisible characters from file names when uploading assets https://github.com/siyuan-note/siyuan/issues/11683

This commit is contained in:
Daniel 2024-06-11 17:40:33 +08:00
parent 428c34c931
commit 1d5a486d57
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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
}