From edb37511813ba803568a71de997031ed79ad5329 Mon Sep 17 00:00:00 2001 From: Zed Date: Sun, 19 Jan 2020 08:49:20 +0100 Subject: [PATCH] Fix incorrect regex Fixes #109 --- src/formatters.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/formatters.nim b/src/formatters.nim index 47699c7..75cf78c 100644 --- a/src/formatters.nim +++ b/src/formatters.nim @@ -7,8 +7,8 @@ import types, utils, query from unicode import Rune, `$` const - ytRegex = re"([A-z.]+\.)?youtu(be.com|.be)" - twRegex = re"(www.|mobile.)?twitter.com" + ytRegex = re"([A-z.]+\.)?youtu(be\.com|\.be)" + twRegex = re"(www\.|mobile\.)?twitter\.com" cards = "https://cards.twitter.com/cards" tco = "https://t.co" nbsp = $Rune(0x000A0)