From 278e6f0d617c2b2e3557eae220b24e1add336e71 Mon Sep 17 00:00:00 2001 From: Her Email Date: Fri, 17 Nov 2023 22:43:59 -0500 Subject: [PATCH] allow CJK tags --- takahe/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/takahe/html.py b/takahe/html.py index c598be2f..2ecafdf6 100644 --- a/takahe/html.py +++ b/takahe/html.py @@ -38,7 +38,7 @@ class FediverseHtmlParser(HTMLParser): r"(^|[^\w\d\-_/])@([\w\d\-_]+(?:@[\w\d\-_\.]+[\w\d\-_]+)?)" ) - HASHTAG_REGEX = re.compile(r"\B#([a-zA-Z0-9(_)]+\b)(?!;)") + HASHTAG_REGEX = re.compile(r"\B#([\w()]+\b)(?!;)") EMOJI_REGEX = re.compile(r"\B:([a-zA-Z0-9(_)-]+):\B")