This commit is contained in:
Daniel 2024-11-27 20:13:22 +08:00
parent 18f68ac715
commit 7446599c0f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
18 changed files with 29 additions and 22 deletions

View file

@ -242,7 +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
name = RemoveInvalid(name) // Remove invisible characters from file names when uploading assets https://github.com/siyuan-note/siyuan/issues/11683
return name
}