From 53f5efeb5e46ffe5c6f568ec165611239287490a Mon Sep 17 00:00:00 2001 From: Benjamin Schieder Date: Fri, 28 Apr 2017 07:22:23 +0100 Subject: [PATCH] fix small mistake in regx --- cronjob.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cronjob.pl b/cronjob.pl index 77b55c0..a9d6776 100755 --- a/cronjob.pl +++ b/cronjob.pl @@ -79,7 +79,7 @@ FEED: foreach my $feed (@feeds){ my %data; if (length($status) > 500){ - $status =~ s/^(.{497}).*$/\1.../g; + $status =~ s/^(.{497}).*$/$1.../g; } $data{status} = $status; $ENV{status} = encode_json({%data});