From: Darold Gilles Date: Sat, 12 Mar 2016 11:02:16 +0000 (+0100) Subject: Fix whitespace placed in between the E and the quote character. Thanks to clijunky... X-Git-Tag: v8.1~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5471d64435e19532367a96d2b2b3df8fcbd0f42b;p=pgbadger Fix whitespace placed in between the E and the quote character. Thanks to clijunky for the report. --- diff --git a/pgbadger b/pgbadger index 12be20e..b66ce3f 100755 --- a/pgbadger +++ b/pgbadger @@ -13682,6 +13682,8 @@ sub build_log_line_prefix_regex | [\[\]\(\),;.] # punctuation (parenthesis, comma) | + E\'\'(?!\') # empty escaped single quoted string + | \'\'(?!\') # empty single quoted string | \"\"(?!\"") # empty double quoted string @@ -13690,6 +13692,8 @@ sub build_log_line_prefix_regex | `(?>(?:(?>[^`\\]+)|``|\\.)*)+` # anything inside backticks quotes, ungreedy | + E'(?>(?:(?>[^'\\]+)|''|\\.)*)+' # anything escaped inside single quotes, ungreedy. + | '(?>(?:(?>[^'\\]+)|''|\\.)*)+' # anything inside single quotes, ungreedy. | /\*[\ \t\r\n\S]*?\*/ # C style comments