Skip to content
Snippets Groups Projects
Commit e1f319fe authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

scripts/documentation-file-ref-check: hint: dash or underline


Sometimes, people use dash instead of underline or vice-versa.
Try to autocorrect it.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Acked-by: default avatarJonathan Corbet <corbet@lwn.net>
parent be600e5a
No related branches found
No related tags found
No related merge requests found
......@@ -104,6 +104,12 @@ foreach my $ref (keys %broken_ref) {
$f=qx(find . -iname $new) if ($new);
}
# usual reason for breakage: use dash or underline
if (!$f) {
$new =~ s/[-_]/[-_]/g;
$f=qx(find . -iname $new) if ($new);
}
# Wild guess: seek for the same name on another place
if (!$f) {
$f = qx(find . -iname $new) if ($new);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment