mirror of
https://github.com/usememos/memos.git
synced 2025-02-21 21:57:47 +01:00
fix: exclude commas in tags (#1957)
This commit is contained in:
parent
8ca2dac184
commit
2a7104e564
@ -176,7 +176,7 @@ func convertTagFromStore(tag *store.Tag) *Tag {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var tagRegexp = regexp.MustCompile(`#([^\s#]+)`)
|
var tagRegexp = regexp.MustCompile(`#([^\s#,]+)`)
|
||||||
|
|
||||||
func findTagListFromMemoContent(memoContent string) []string {
|
func findTagListFromMemoContent(memoContent string) []string {
|
||||||
tagMapSet := make(map[string]bool)
|
tagMapSet := make(map[string]bool)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { matcher } from "../matcher";
|
import { matcher } from "../matcher";
|
||||||
|
|
||||||
export const TAG_REG = /#([^\s#]+)/;
|
export const TAG_REG = /#([^\s#,]+)/;
|
||||||
|
|
||||||
const renderer = (rawStr: string) => {
|
const renderer = (rawStr: string) => {
|
||||||
const matchResult = matcher(rawStr, TAG_REG);
|
const matchResult = matcher(rawStr, TAG_REG);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user