mirror of https://github.com/usememos/memos.git
Merge 2d1de0fd1d into f403f8c03c
This commit is contained in:
commit
6a20a9ec1b
|
|
@ -18,7 +18,11 @@ function isTagChar(char: string): boolean {
|
|||
return true;
|
||||
}
|
||||
|
||||
return char === "_" || char === "-" || char === "/" || char === "&";
|
||||
if (/\p{M}/u.test(char)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return char === "_" || char === "-" || char === "/" || char === "&" || char === "\u200D";
|
||||
}
|
||||
|
||||
function parseTagsFromText(text: string): Array<{ type: "text"; value: string } | { type: "tag"; value: string }> {
|
||||
|
|
|
|||
Loading…
Reference in New Issue