fix: hashtag filter for Unicode characters (#2017)

This commit is contained in:
Ajay Kumbhare 2023-07-23 16:47:18 +05:30 committed by GitHub
parent a9eb605b0f
commit d000083b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = "";