From 23ed23b9d9d0df6ef9e5862640f36f7058b16191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Wed, 3 Oct 2018 14:52:09 +0300 Subject: [PATCH] Handle Twitter URLs specially --- speak-logs.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/speak-logs.sh b/speak-logs.sh index 84cff7c..17edf22 100644 --- a/speak-logs.sh +++ b/speak-logs.sh @@ -27,6 +27,8 @@ sed -E 's,\<-|←,answer,' | # Handle someone quoting another person sed -E 's,\<\;[+@ ]?([^& :]+)\>\;,quoting \1,g' | sed -E 's, \* ([^ ]+),quoting action \1,g' | +# Handle Twitter URLs +sed -E 's,https?://(mobile\.|www\.)?twitter[^ )>]+, twitter URL,g' | # Handle URLs sed -E 's,(https?|gopher)://[^ )>]+, \1 URL,g' | # Handle 'fancy' quotes