Skip to content

Commit

Permalink
allow CJK tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Her Email authored and alphatownsman committed Nov 18, 2023
1 parent f963dea commit 278e6f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion takahe/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 278e6f0

Please sign in to comment.