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