mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Remove invisible characters from file names when uploading assets https://github.com/siyuan-note/siyuan/issues/11683
This commit is contained in:
parent
428c34c931
commit
1d5a486d57
1 changed files with 1 additions and 0 deletions
|
|
@ -242,6 +242,7 @@ func FilterFileName(name string) string {
|
||||||
name = strings.ReplaceAll(name, ">", "")
|
name = strings.ReplaceAll(name, ">", "")
|
||||||
name = strings.ReplaceAll(name, "|", "")
|
name = strings.ReplaceAll(name, "|", "")
|
||||||
name = strings.TrimSpace(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
|
return name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue