mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-18 04:58:06 +01:00
🎨 Cloud inbox support preview audio and video https://github.com/siyuan-note/siyuan/issues/9780
This commit is contained in:
parent
6ccf76e6cd
commit
3d8d1ef544
1 changed files with 3 additions and 3 deletions
|
|
@ -507,10 +507,10 @@ func GetCloudShorthands(page int) (result map[string]interface{}, err error) {
|
|||
shorthand["hCreated"] = hCreated.Format("2006-01-02 15:04")
|
||||
|
||||
desc := shorthand["shorthandDesc"].(string)
|
||||
desc = audioRegexp.ReplaceAllString(desc, "语音、")
|
||||
desc = videoRegexp.ReplaceAllString(desc, "视频、")
|
||||
desc = strings.TrimSuffix(desc, "、")
|
||||
desc = audioRegexp.ReplaceAllString(desc, " 语音 ")
|
||||
desc = videoRegexp.ReplaceAllString(desc, " 视频 ")
|
||||
desc = strings.ReplaceAll(desc, "\n\n", "")
|
||||
desc = strings.TrimSpace(desc)
|
||||
shorthand["shorthandDesc"] = desc
|
||||
|
||||
md := shorthand["shorthandContent"].(string)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue