Skip to content

Commit 97e9af1

Browse files
author
Greg Sabino Mullane
committed
Grrr...account for trailing whitespace in psql table output
1 parent c1122b6 commit 97e9af1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check_postgres.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2459,7 +2459,7 @@ sub run_command {
24592459
$lnum++;
24602460
next;
24612461
}
2462-
if ($line =~ /^ ?([\?\w]+)\s+\| (.*)/) {
2462+
if ($line =~ /^ ?([\?\w]+)\s+\| (.*?)\s*$/) {
24632463
$stuff[$lnum]{$1} = $2;
24642464
$lastval = $1;
24652465
}

0 commit comments

Comments
 (0)