Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8e4d725

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

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-
nextif$line =~m/^#/;
185+
nextif$line =~m/^#/ ||$lineeq"";
186186
my$rgx =qr!$line!;
187187
@files =grep {$_ !~/$rgx/ }@filesif$rgx;
188188
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp