mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve search for emojis in tags https://github.com/siyuan-note/siyuan/issues/15391
This commit is contained in:
parent
211648b95e
commit
16d3b65b2a
2 changed files with 10 additions and 1 deletions
|
|
@ -2213,9 +2213,12 @@ func getRefSearchIgnoreLines() (ret []string) {
|
|||
func filterQueryInvisibleChars(query string) string {
|
||||
query = strings.ReplaceAll(query, " ", "_@full_width_space@_")
|
||||
query = strings.ReplaceAll(query, "\t", "_@tab@_")
|
||||
query = strings.ReplaceAll(query, string(gulu.ZWJ), "__@ZWJ@__")
|
||||
query = util.RemoveInvalid(query)
|
||||
query = strings.ReplaceAll(query, "_@full_width_space@_", " ")
|
||||
query = strings.ReplaceAll(query, "_@tab@_", "\t")
|
||||
query = strings.ReplaceAll(query, "__@ZWJ@__", string(gulu.ZWJ))
|
||||
query = strings.ReplaceAll(query, string(gulu.ZWJ)+"#", "#")
|
||||
return query
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue