Handle Twitter URLs specially

This commit is contained in:
Juhani Krekelä 2018-10-03 14:52:09 +03:00
parent f557f8e1c3
commit 23ed23b9d9
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,8 @@ sed -E 's,\&lt;-|←,<meta>answer</meta>,' |
# Handle someone quoting another person
sed -E 's,\&lt\;[+@ ]?([^& :]+)\&gt\;,<meta>quoting \1</meta>,g' |
sed -E 's, \* ([^ ]+),<meta>quoting action \1</meta>,g' |
# Handle Twitter URLs
sed -E 's,https?://(mobile\.|www\.)?twitter[^ )>]+,<meta> twitter URL</meta>,g' |
# Handle URLs
sed -E 's,(https?|gopher)://[^ )>]+,<meta> \1 URL</meta>,g' |
# Handle 'fancy' quotes