Merge branch 'ta/lint-gitlink-older-perl-fix' into next
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}
next
commit
4ca90b4922
|
|
@ -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:" ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue