mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🐛 Assets search garbled characters Fix https://github.com/siyuan-note/siyuan/issues/8828
This commit is contained in:
@@ -68,7 +68,9 @@ func RemoveID(name string) string {
|
||||
ext := path.Ext(name)
|
||||
name = strings.TrimSuffix(name, ext)
|
||||
if 23 < len(name) {
|
||||
name = name[:len(name)-23]
|
||||
if id := name[len(name)-22:]; ast.IsNodeIDPattern(id) {
|
||||
name = name[:len(name)-23]
|
||||
}
|
||||
}
|
||||
return name + ext
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user