Unverified Commit 2a7104e5 authored by Felipe Martínez's avatar Felipe Martínez Committed by GitHub

fix: exclude commas in tags (#1957)

parent 8ca2dac1
......@@ -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)
......
import { matcher } from "../matcher";
export const TAG_REG = /#([^\s#]+)/;
export const TAG_REG = /#([^\s#,]+)/;
const renderer = (rawStr: string) => {
const matchResult = matcher(rawStr, TAG_REG);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment