mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 03:40:04 -06:00
🎨 Limit the database title to 512 characters https://github.com/siyuan-note/siyuan/issues/15459
This commit is contained in:
@@ -101,10 +101,7 @@ func checkAttrView(attrView *av.AttributeView, view *av.View) {
|
||||
}
|
||||
}
|
||||
|
||||
if strings.Contains(attrView.Name, "\n") {
|
||||
attrView.Name = strings.ReplaceAll(attrView.Name, "\n", " ")
|
||||
}
|
||||
|
||||
attrView.Name = strings.ReplaceAll(attrView.Name, "\n", " ")
|
||||
// 截断超长的数据库标题 Limit the database title to 512 characters https://github.com/siyuan-note/siyuan/issues/15459
|
||||
if 512 < utf8.RuneCountInString(attrView.Name) {
|
||||
attrView.Name = gulu.Str.SubStr(attrView.Name, 512)
|
||||
|
||||
Reference in New Issue
Block a user