]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
scripts/documentation-file-ref-check: accept more wildcards at filenames
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 14 Jun 2018 10:48:22 +0000 (07:48 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 15 Jun 2018 21:10:01 +0000 (18:10 -0300)
at MAINTAINERS, some filename paths use '?' and things like [7,9].
So, accept more wildcards, in order to avoid false-positives.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Acked-by: Jonathan Corbet <corbet@lwn.net>
scripts/documentation-file-ref-check

index 9e7ae14080aa782cc03c92dc0b39ff46219a27e5..9d5e21b10346bf65d74ac655458d56a0bdbff6fa 100755 (executable)
@@ -43,7 +43,7 @@ while (<IN>) {
        # Skip this script
        next if ($f eq $scriptname);
 
-       if ($ln =~ m,\b(\S*)(Documentation/[A-Za-z0-9\_\.\,\~/\*+-]*),) {
+       if ($ln =~ m,\b(\S*)(Documentation/[A-Za-z0-9\_\.\,\~/\*\[\]\?+-]*),) {
                my $prefix = $1;
                my $ref = $2;
                my $base = $2;