Merge branch 'ta/lint-gitlink-older-perl-fix'
The development helper script to lint gitlink references in the
documentation has been updated to avoid a newer Perl regular
expression syntax that breaks on older Perl versions.
* ta/lint-gitlink-older-perl-fix:
lint-gitlink: don't use empty lower bound in .{0,8}
This commit is contained in:
commit
584621d0b0
1 file changed
+1
-1
@@ -42,7 +42,7 @@ die "BUG: No list of valid linkgit:* files given" unless @ARGV;
|
||||
while (<>) {
|
||||
my $line = $_;
|
||||
next if $line =~ /^\s*(ifn?def|endif)::/;
|
||||
while ($line =~ m/(.{,8})((git[-a-z]+|scalar)\[(\d)*\])/g) {
|
||||
while ($line =~ m/(.{0,8})((git[-a-z]+|scalar)\[(\d)*\])/g) {
|
||||
my $pos = pos $line;
|
||||
my ($macro, $target, $page, $section) = ($1, $2, $3, $4);
|
||||
if ( $macro ne "linkgit:" ) {
|
||||
|
||||
Reference in new issue
Block a user