mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
contrib/pre-commit: fixing negative tagcount message (Forum #89243)
git-svn-id: https://svn.fhem.de/fhem/trunk@16966 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d2312d32b7
commit
18969ecb51
@ -126,7 +126,7 @@ foreach my $row (split("\n", $fList)) {
|
|||||||
$tagcount{$tag} +=()= ($l =~ /<$tag>/gi);
|
$tagcount{$tag} +=()= ($l =~ /<$tag>/gi);
|
||||||
$tagcount{$tag} -=()= ($l =~ /<\/$tag>/gi);
|
$tagcount{$tag} -=()= ($l =~ /<\/$tag>/gi);
|
||||||
if($tagcount{$tag} < 0) {
|
if($tagcount{$tag} < 0) {
|
||||||
print "*** $lang $fName: negative tagcount for $tag, line $line\n";
|
err $fName, "$lang: negative tagcount for $tag, line $line";
|
||||||
$tagcount{$tag} = 0;
|
$tagcount{$tag} = 0;
|
||||||
}
|
}
|
||||||
$llwct{$tag} = $line if(!$llwct{$tag} || ($ot && !$tagcount{$tag}));
|
$llwct{$tag} = $line if(!$llwct{$tag} || ($ot && !$tagcount{$tag}));
|
||||||
|
Loading…
Reference in New Issue
Block a user