fix slashes between hastags

This commit is contained in:
jackyzy823 2022-02-14 09:38:46 +01:00
parent 7ca3591920
commit c7a78a7f43

View file

@ -8,7 +8,7 @@ let
unRegex = re.re"(^|[^A-z0-9-_./?])@([A-z0-9_]{1,15})"
unReplace = "$1<a href=\"/$2\">@$2</a>"
htRegex = nre.re"(*U)(^|[^\w-_./?])([#$])([\w_]+)"
htRegex = nre.re"""(*U)(^|[^\w-_.?])([#$])([\w_]*+)(?!</a>|">|#)"""
htReplace = "$1<a href=\"/search?q=%23$3\">$2$3</a>"
proc expandUserEntities(user: var User; raw: RawUser) =