Skip to content

Commit c3d0bfe

Browse files
committed
overlaycheck: Allow long lines without spaces
In order to accommodate long URLs, permit lines without spaces to exceed the 80 character limit. Prior to this change the line would have to begin with at least one space. Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent 9f61b87 commit c3d0bfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

overlaycheck/overlaycheck

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ if ($try_all)
358358
foreach my $base (@base_files)
359359
{
360360
next if (!-f "$TMPDIR/$base.dtb");
361-
next if (($overlay =~ /(wifi|bt)/) && ($base !~ /^(bcm2708-rpi-zero-w|bcm2709-rpi-zero-2|bcm2710-rpi-3-|bcm2711-rpi-(4|cm4$)|bcm2712-rpi-(5|cm5))/));
361+
next if (($overlay =~ /(wifi|bt)/) && ($base !~ /^(bcm2708-rpi-zero-w|bcm2710-rpi-zero-2|bcm2710-rpi-3-|bcm2711-rpi-(4|cm4$)|bcm2712-rpi-(5|cm5))/));
362362
next if ($overlay eq 'vl805' && $base eq 'bcm2711-rpi-cm4s');
363363
next if ($overlay_props->{'bcm2711'} && $base !~ /^bcm2711/);
364364
next if ($overlay_props->{'bcm2712'} && $base !~ /^bcm2712/);
@@ -507,7 +507,7 @@ sub parse_readme
507507
error("TABs in README ($linenum)") if ($line =~ /\t/);
508508
error("Trailing whitespace in README ($linenum)") if ($line =~ /\s$/);
509509
error("Line too long in README ($linenum)")
510-
if (length($line) > 80 && $line !~ /^\s+[^\s]+$/);
510+
if (length($line) > 80 && $line !~ /^\s*[^\s]+$/);
511511

512512
if ($overlay && !$line)
513513
{

0 commit comments

Comments
 (0)