(raw: string)
| 184 | // Normalize raw settings entries via roundtrip parse→serialize so legacy |
| 185 | // names (e.g. "KillShell") match their canonical form ("TaskStop"). |
| 186 | const normalizeEntry = (raw: string): string => |
| 187 | permissionRuleValueToString(permissionRuleValueFromString(raw)) |
| 188 | |
| 189 | if (!behaviorArray.some(raw => normalizeEntry(raw) === ruleString)) { |
| 190 | return false |
no test coverage detected