From c7a78a7f434aeb5ce625a3c9e207a6217c741e09 Mon Sep 17 00:00:00 2001 From: jackyzy823 Date: Mon, 14 Feb 2022 09:38:46 +0100 Subject: [PATCH] fix slashes between hastags --- src/experimental/parser/user.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/experimental/parser/user.nim b/src/experimental/parser/user.nim index bf8c5ba..715c9a9 100644 --- a/src/experimental/parser/user.nim +++ b/src/experimental/parser/user.nim @@ -8,7 +8,7 @@ let unRegex = re.re"(^|[^A-z0-9-_./?])@([A-z0-9_]{1,15})" unReplace = "$1@$2" - htRegex = nre.re"(*U)(^|[^\w-_./?])([##$])([\w_]+)" + htRegex = nre.re"""(*U)(^|[^\w-_.?])([##$])([\w_]*+)(?!|">|#)""" htReplace = "$1$2$3" proc expandUserEntities(user: var User; raw: RawUser) =