diff --git a/contrib/commandref_join.pl b/contrib/commandref_join.pl index 86fa66a5b..cf7c181ae 100755 --- a/contrib/commandref_join.pl +++ b/contrib/commandref_join.pl @@ -189,10 +189,9 @@ generateModuleCommandref($$;$$) $hasLink = ($l =~ m/]+)>/i) { - my $attr = $1; - print "*** $lang $mod line $line: $tag with attributes (apart ". - "from class) is not allowed\n" - if($attr !~ m/class="[^"]*"/ && !$noWarnings); + print "*** $lang $mod line $line: $tag with attributes". + " is not allowed\n" + if(!$noWarnings); } $tagcount{$tag} +=()= ($l =~ /<$tag( [^>]+)?>/gi); $tagcount{$tag} -=()= ($l =~ /<\/$tag>/gi); diff --git a/contrib/pre-commit b/contrib/pre-commit index f6fe8354a..4c4899d01 100755 --- a/contrib/pre-commit +++ b/contrib/pre-commit @@ -141,9 +141,8 @@ foreach my $row (split("\n", $fList)) { foreach $tag (TAGS) { my $ot = ($tagcount{$tag} ? $tagcount{$tag} : 0); if($l =~ m/<$tag ([^>]+)>/i) { - my $attr = $1; - err $fName, "$lang line $line: $tag with attributes (apart ". - "from class) is not allowed\n" ; + err $fName, "$lang line $line: $tag with attributes". + " is not allowed\n" ; } $tagcount{$tag} +=()= ($l =~ /<$tag( [^>]+)?>/gi); $tagcount{$tag} -=()= ($l =~ /<\/$tag>/gi);