From: Darold Gilles Date: Wed, 13 May 2015 15:21:34 +0000 (+0200) Subject: Add Json Operators to SQL Beautifier. Thanks to Tom Burnett and Hubert depesz Lubacze... X-Git-Tag: v7.1~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09b17e9bd21826e1513276c6a229c28ad47e70f1;p=pgbadger Add Json Operators to SQL Beautifier. Thanks to Tom Burnett and Hubert depesz Lubaczewski. --- diff --git a/pgbadger b/pgbadger index 8781f86..b260703 100755 --- a/pgbadger +++ b/pgbadger @@ -11818,13 +11818,15 @@ sub build_log_line_prefix_regex my $re = qr{ ( (?:--)[\ \t\S]* # single line comments - | - (?:<>|<=>|>=|<=|==|=|!=|!|<<|>>|<|>|\|\||\||&&|&|-|\+|\*(?!/)|/(?!\*)|\%|~|\^|\?) - # operators and tests | (?:\#|\@\-\@|\@\@|\#\#|<\->|\&<|\&>|<<\||\|>>|\&<\||\|\&>|<\^|>\^|\?\#|\?\-|\?\||\?\-\||\?\|\||\@>|<\@|\~=) # Geometric Operators | + (?:\->>|\->|\#>|\?\&|\?) # Json Operators + | + (?:<>|<=>|>=|<=|==|=|!=|!|<<|>>|<|>|\|\||\||&&|&|-|\+|\*(?!/)|/(?!\*)|\%|~|\^|\?) + # operators and tests + | [\[\]\(\),;.] # punctuation (parenthesis, comma) | \'\'(?!\') # empty single quoted string