mirror of
https://github.com/usememos/memos.git
synced 2025-12-16 21:59:25 +08:00
fix: hashtag filter for Unicode characters (#2017)
This commit is contained in:
parent
a9eb605b0f
commit
d000083b41
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ const MemoList: React.FC<Props> = (props: Props) => {
|
||||||
}
|
}
|
||||||
if (tagQuery) {
|
if (tagQuery) {
|
||||||
const tagsSet = new Set<string>();
|
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 tag = t.replace(TAG_REG, "$1").trim();
|
||||||
const items = tag.split("/");
|
const items = tag.split("/");
|
||||||
let temp = "";
|
let temp = "";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue