mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
pre-commit: fixing the warning text (Forum #122633)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@24874 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
16c75b02df
commit
73dd85db42
@ -189,10 +189,9 @@ generateModuleCommandref($$;$$)
|
|||||||
$hasLink = ($l =~ m/<a (name|id)="$mod"/) if(!$hasLink);
|
$hasLink = ($l =~ m/<a (name|id)="$mod"/) if(!$hasLink);
|
||||||
foreach $tag (TAGS) {
|
foreach $tag (TAGS) {
|
||||||
if($l =~ m/<$tag ([^>]+)>/i) {
|
if($l =~ m/<$tag ([^>]+)>/i) {
|
||||||
my $attr = $1;
|
print "*** $lang $mod line $line: $tag with attributes".
|
||||||
print "*** $lang $mod line $line: $tag with attributes (apart ".
|
" is not allowed\n"
|
||||||
"from class) is not allowed\n"
|
if(!$noWarnings);
|
||||||
if($attr !~ m/class="[^"]*"/ && !$noWarnings);
|
|
||||||
}
|
}
|
||||||
$tagcount{$tag} +=()= ($l =~ /<$tag( [^>]+)?>/gi);
|
$tagcount{$tag} +=()= ($l =~ /<$tag( [^>]+)?>/gi);
|
||||||
$tagcount{$tag} -=()= ($l =~ /<\/$tag>/gi);
|
$tagcount{$tag} -=()= ($l =~ /<\/$tag>/gi);
|
||||||
|
@ -141,9 +141,8 @@ foreach my $row (split("\n", $fList)) {
|
|||||||
foreach $tag (TAGS) {
|
foreach $tag (TAGS) {
|
||||||
my $ot = ($tagcount{$tag} ? $tagcount{$tag} : 0);
|
my $ot = ($tagcount{$tag} ? $tagcount{$tag} : 0);
|
||||||
if($l =~ m/<$tag ([^>]+)>/i) {
|
if($l =~ m/<$tag ([^>]+)>/i) {
|
||||||
my $attr = $1;
|
err $fName, "$lang line $line: $tag with attributes".
|
||||||
err $fName, "$lang line $line: $tag with attributes (apart ".
|
" is not allowed\n" ;
|
||||||
"from class) is not allowed\n" ;
|
|
||||||
}
|
}
|
||||||
$tagcount{$tag} +=()= ($l =~ /<$tag( [^>]+)?>/gi);
|
$tagcount{$tag} +=()= ($l =~ /<$tag( [^>]+)?>/gi);
|
||||||
$tagcount{$tag} -=()= ($l =~ /<\/$tag>/gi);
|
$tagcount{$tag} -=()= ($l =~ /<\/$tag>/gi);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user