From a9f49615470506da19a22c0733953d6094c2dd01 Mon Sep 17 00:00:00 2001 From: Zed Date: Tue, 8 Oct 2019 13:16:48 +0200 Subject: [PATCH] Fix hashtag linkifying --- src/formatters.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/formatters.nim b/src/formatters.nim index 73f714d..5423582 100644 --- a/src/formatters.nim +++ b/src/formatters.nim @@ -44,7 +44,7 @@ proc reEmailToLink*(m: RegexMatch; s: string): string = proc reHashtagToLink*(m: RegexMatch; s: string): string = result = if m.group(0).len > 0: s[m.group(0)[0]] else: "" let hash = s[m.group(1)[0]] - let link = toLink("/search?text=" & encodeUrl(hash), hash) + let link = toLink("/search?q=" & encodeUrl(hash), hash) if hash.any(isAlphaAscii): result &= link else: