From: Gilles Darold Date: Wed, 26 Apr 2017 22:22:07 +0000 (+0200) Subject: Fix build_log_line_prefix_regex() that does not include %n as a lookup in %regex_map... X-Git-Tag: v9.2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56a834926941e02e4844ad0f3cc93e44cde7f84f;p=pgbadger Fix build_log_line_prefix_regex() that does not include %n as a lookup in %regex_map. Thanks to ghosthound for the patch. --- diff --git a/pgbadger b/pgbadger index 196fb2b..b4dbcab 100644 --- a/pgbadger +++ b/pgbadger @@ -14056,7 +14056,7 @@ sub build_log_line_prefix_regex $llp =~ s/([\[\]\|\(\)\{\}])/\\$1/g; $llp =~ s/\%l([^\d])\d+/\%l$1\\d\+/; $llp =~ s/\%q//; - while ($llp =~ s/(\%[audrhptmlscvxie])/$regex_map{"$1"}->[1]/) { + while ($llp =~ s/(\%[audrhpntmlscvxie])/$regex_map{"$1"}->[1]/) { push(@param_list, $regex_map{"$1"}->[0]); } # replace %% by a single %