fix: exclude commas in tags (#1957)

pull/1960/head
Felipe Martínez 2 years ago committed by GitHub
parent 8ca2dac184
commit 2a7104e564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 {
tagMapSet := make(map[string]bool)

@ -1,6 +1,6 @@
import { matcher } from "../matcher";
export const TAG_REG = /#([^\s#]+)/;
export const TAG_REG = /#([^\s#,]+)/;
const renderer = (rawStr: string) => {
const matchResult = matcher(rawStr, TAG_REG);

Loading…
Cancel
Save