From 8c94dfd43f58edfedaf12e32a8b7aafd4d2c6112 Mon Sep 17 00:00:00 2001 From: gutmet Date: Sat, 2 May 2020 09:13:22 +0200 Subject: [PATCH] correction in link matching --- fakenews | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fakenews b/fakenews index 95b8b0d..4067fd5 100755 --- a/fakenews +++ b/fakenews @@ -20,7 +20,7 @@ while read account; do tscrape | head -n $numberOfTweets | awk -F '\t' '{$1 = strftime("%d-%m-%Y %H:%M:%S",$1); print "
" $6 "
" $4 "
" $1 "
"}' | - sed 's/[ ]\(https:[^ ]*\)/ \1<\/a>/g' | + sed 's/\([^"]\)\(https:[^ ]*\)/\1\2<\/a>/g' | sed 's/>\(https:[^<]*.jpg\)/>PICTURE/g' >> $outfile echo "" >> $outfile done < "$accountsfile"