Unverified Commit d000083b authored by Ajay Kumbhare's avatar Ajay Kumbhare Committed by GitHub

fix: hashtag filter for Unicode characters (#2017)

parent a9eb605b
...@@ -43,7 +43,7 @@ const MemoList: React.FC<Props> = (props: Props) => { ...@@ -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 = "";
......
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