diff options
author | Greg | 2009-06-02 00:01:45 +0000 |
---|---|---|
committer | Greg | 2009-06-02 00:01:45 +0000 |
commit | 6f0332c0e106c65ca7c12d263385a4ff18fcfdb9 (patch) | |
tree | 02b9ae18c7302618b4d64a04d0a7d04da967222f | |
parent | 215aee79b48162330531c42604e344e75321f25d (diff) |
Regex tweak.
-rwxr-xr-x | check_postgres.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index ed877fbc7..a1ca1f241 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -4420,7 +4420,7 @@ sub check_same_schema { . q{FROM pg_proc JOIN pg_namespace n ON (n.oid = pronamespace)}; $info = run_command($SQL, { dbnumber => $x } ); for $db (@{$info->{db}}) { - while ($db->{slurp} =~ /^\s*(.+?)\s+\| (.+?)\s+\| (.+?)\s+\| (.+?)\s+/gmo) { + while ($db->{slurp} =~ /^\s*(.+?)\s+\| (.+?)\s+\| (.+?)\s+\| (.+?)\s*/gmo) { my ($schema,$name,$args,$md5) = ($1,$2,$3,$4); $args =~ s/(\d+)/$thing{$x}{type}{$1}/g; $args =~ s/^\s*(.*)\s*$/($1)/; |