mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-06 09:12:46 +01:00
fix: count 0 bug
This commit is contained in:
7
WELA.ps1
7
WELA.ps1
@@ -74,9 +74,12 @@
|
|||||||
if (-not $count) {
|
if (-not $count) {
|
||||||
$count = 0 # 明示的に0を設定しないと空文字列に変換されるため
|
$count = 0 # 明示的に0を設定しないと空文字列に変換されるため
|
||||||
}
|
}
|
||||||
$ruleCounts += "info:$([string]$count)"
|
$ruleCounts += "info: $([string]$count)"
|
||||||
} else {
|
} else {
|
||||||
$ruleCounts += "$($level):$($count), "
|
if (-not $count) {
|
||||||
|
$count = 0 # 明示的に0を設定しないと空文字列に変換されるため
|
||||||
|
}
|
||||||
|
$ruleCounts += "$($level): $($count), "
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$ruleCounts += ")"
|
$ruleCounts += ")"
|
||||||
|
|||||||
Reference in New Issue
Block a user