From 797d09164337c607e7f6e942977448b6622597d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Fri, 28 Oct 2022 07:45:33 +0200 Subject: [PATCH] fix(tlg-wotd) --- configs/telegram-bots/tlg-wotd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/telegram-bots/tlg-wotd.nix b/configs/telegram-bots/tlg-wotd.nix index d7dddae..65d6ac9 100644 --- a/configs/telegram-bots/tlg-wotd.nix +++ b/configs/telegram-bots/tlg-wotd.nix @@ -12,7 +12,7 @@ ${pkgs.curl}/bin/curl -sSL http://stephanus.tlg.uci.edu/Iris/Wotd \ | ${pkgs.recode}/bin/recode html..utf8 \ | ${pkgs.jq}/bin/jq -r ' - "*\(.word)* '\'''\(.definition | rtrimstr(" "))'\'''\n\nFirst occurrence: \(.firstOccurrence)\nNumber of occurrences: \(.totalOccurrences)" + "*\(.word)* '\'''\(.definition | sub("<.*>"; "") | rtrimstr(" "))'\'''\n\nFirst occurrence: \(.firstOccurrence)\nNumber of occurrences: \(.totalOccurrences)" ' ''); parseMode = "Markdown";