Skip to content

Commit 8e4d725

Browse files
committed
Ignore blank lines in pgindent exclude files
Currently a blank line matches everything, which is almost never what someone would want. If they really want that they can use a wildcard regex to do it. Author: Zsolt Parragi <zsolt.parragi@percona.com> Discussion: https://postgr.es/m/CAN4CZFNka+2q3=-Dithr4w65RJfwPaV92T62spEzLn+T4MgcMg@mail.gmail.com
1 parent 9d9a710 commit 8e4d725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/pgindent/pgindent

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ sub process_exclude
182182
while (my $line = <$eh>)
183183
{
184184
chomp $line;
185-
next if $line =~ m/^#/;
185+
next if $line =~ m/^#/ || $line eq "";
186186
my $rgx = qr!$line!;
187187
@files = grep { $_ !~ /$rgx/ } @files if $rgx;
188188
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy