revert: fix: exclude all punctuation chars except underscore in tags (#2033)

Revert "fix: exclude all punctuation chars except underscore in tags (#1974)"

This reverts commit 8c61531671.
This commit is contained in:
boojack
2023-07-26 21:11:13 +08:00
committed by GitHub
parent 756e6a150c
commit 56c321aeaa
3 changed files with 4 additions and 10 deletions

View File

@@ -176,7 +176,7 @@ func convertTagFromStore(tag *store.Tag) *Tag {
}
}
var tagRegexp = regexp.MustCompile(`#((?:[^\s\p{P}]|_)+)`)
var tagRegexp = regexp.MustCompile(`#([^\s#,]+)`)
func findTagListFromMemoContent(memoContent string) []string {
tagMapSet := make(map[string]bool)