From: Greg Sabino Mullane Date: Thu, 30 Oct 2014 22:14:58 +0000 (-0400) Subject: Grrr...account for trailing whitespace in psql table output X-Git-Tag: 2.22.0~19 X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=97e9af12d8f7d8d1b24c81f6acea514b0fbbe444;p=check_postgres.git Grrr...account for trailing whitespace in psql table output --- diff --git a/check_postgres.pl b/check_postgres.pl index 634fffefb..1893b62d6 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -2459,7 +2459,7 @@ sub run_command { $lnum++; next; } - if ($line =~ /^ ?([\?\w]+)\s+\| (.*)/) { + if ($line =~ /^ ?([\?\w]+)\s+\| (.*?)\s*$/) { $stuff[$lnum]{$1} = $2; $lastval = $1; }