mirror of
https://github.com/usememos/memos.git
synced 2025-01-03 03:38:23 +03:00
fix: hashtag filter for Unicode characters (#2017)
This commit is contained in:
parent
a9eb605b0f
commit
d000083b41
@ -43,7 +43,7 @@ const MemoList: React.FC<Props> = (props: Props) => {
|
||||
}
|
||||
if (tagQuery) {
|
||||
const tagsSet = new Set<string>();
|
||||
for (const t of Array.from(memo.content.match(new RegExp(TAG_REG, "g")) ?? [])) {
|
||||
for (const t of Array.from(memo.content.match(new RegExp(TAG_REG, "gu")) ?? [])) {
|
||||
const tag = t.replace(TAG_REG, "$1").trim();
|
||||
const items = tag.split("/");
|
||||
let temp = "";
|
||||
|
Loading…
Reference in New Issue
Block a user