summaryrefslogtreecommitdiffstats
path: root/scripts/documentation-file-ref-check
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-06-14 12:48:22 +0200
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-06-15 23:10:01 +0200
commit50440240021ca3cefe376fa11a7ae085734f165a (patch)
tree8d9b3169ca289b84d253db39f0e6d7f0717f0e05 /scripts/documentation-file-ref-check
parentscripts/documentation-file-ref-check: fix help message (diff)
downloadlinux-50440240021ca3cefe376fa11a7ae085734f165a.tar.xz
linux-50440240021ca3cefe376fa11a7ae085734f165a.zip
scripts/documentation-file-ref-check: accept more wildcards at filenames
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>
Diffstat (limited to '')
-rwxr-xr-xscripts/documentation-file-ref-check2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/documentation-file-ref-check b/scripts/documentation-file-ref-check
index 9e7ae14080aa..9d5e21b10346 100755
--- a/scripts/documentation-file-ref-check
+++ b/scripts/documentation-file-ref-check
@@ -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;