Skip to content

Commit

Permalink
scripts/documentation-file-ref-check: accept more wildcards at filenames
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Jun 15, 2018
1 parent 40fc3eb commit 5044024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/documentation-file-ref-check
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5044024

Please sign in to comment.