fix slashes between hastags
This commit is contained in:
parent
7ca3591920
commit
c7a78a7f43
1 changed files with 1 additions and 1 deletions
|
@ -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) =
|
||||
|
|
Loading…
Reference in a new issue