]> granicus.if.org Git - pgbadger/commitdiff
Fix whitespace placed in between the E and the quote character. Thanks to clijunky...
authorDarold Gilles <gilles@darold.net>
Sat, 12 Mar 2016 11:02:16 +0000 (12:02 +0100)
committerDarold Gilles <gilles@darold.net>
Sat, 12 Mar 2016 11:02:16 +0000 (12:02 +0100)
pgbadger

index 12be20ea86fe9b53d18488d9343da1573a292aa6..b66ce3f69cb981b2e01f231193d7e8b4c3efdfa9 100755 (executable)
--- 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