🎨 Clean code

This commit is contained in:
Liang Ding 2022-09-02 23:17:35 +08:00
parent 71678ad217
commit a5a1948cee
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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, "(", "")