Procházet zdrojové kódy

Match "hashflag" elements when parsing tweets

Zed před 6 roky
rodič
revize
8ddb913912
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/parserutils.nim

+ 1 - 1
src/parserutils.nim

@@ -60,7 +60,7 @@ proc parseText*(text: XmlNode; skipLink=""): string =
         if "u-hidden" in class and result.len > 0:
           result.add "\n"
         result.add a(shortLink(url), href=url)
-      elif "ashtag" in class:
+      elif "ashtag" in class or "hashflag" in class:
         let hash = el.innerText()
         result.add a(hash, href=("/search?q=" & encodeUrl(hash)))
       elif "atreply" in class: