mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02:00
🎨 Clean code
This commit is contained in:
parent
71678ad217
commit
a5a1948cee
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ func IsCorruptedSYData(data []byte) bool {
|
|||
func FilterUploadFileName(name string) string {
|
||||
ret := FilterFileName(name)
|
||||
ret = strings.ReplaceAll(ret, "~", "")
|
||||
//ret = strings.ReplaceAll(ret, "_", "") // https://github.com/siyuan-note/siyuan/issues/3534
|
||||
//ret = strings.ReplaceAll(ret, "_", "") // 插入资源文件时允许下划线 https://github.com/siyuan-note/siyuan/issues/3534
|
||||
ret = strings.ReplaceAll(ret, "[", "")
|
||||
ret = strings.ReplaceAll(ret, "]", "")
|
||||
ret = strings.ReplaceAll(ret, "(", "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue