mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 03:48:48 +01:00
🎨 Database primary key anchor text supports line breaks https://github.com/siyuan-note/siyuan/issues/13624
This commit is contained in:
parent
6125603e38
commit
07cd4ec0b5
5 changed files with 23 additions and 13 deletions
|
|
@ -20,6 +20,7 @@ import (
|
|||
"os"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
"strings"
|
||||
"unicode"
|
||||
|
||||
"github.com/88250/gulu"
|
||||
|
|
@ -69,6 +70,13 @@ func RemoveInvalid(text string) (ret string) {
|
|||
return
|
||||
}
|
||||
|
||||
func RemoveInvalidRetainCtrl(text string) (ret string) {
|
||||
ret = strings.ReplaceAll(text, "\u00A0", " ") // NBSP 转换为普通空格
|
||||
ret = gulu.Str.RemoveZeroWidthCharacters(ret)
|
||||
ret = gulu.Str.RemovePUA(ret)
|
||||
return
|
||||
}
|
||||
|
||||
var NativeEmojiChars = map[string]bool{}
|
||||
|
||||
func InitEmojiChars() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue