🛂 (radar) Enable multiple RADAR_CUMULATIVE_KEYWORDS sets
This commit is contained in:
@@ -11,8 +11,8 @@ export const computeRiskLevel = (typebot: any) => {
|
||||
)
|
||||
return 100
|
||||
if (
|
||||
env.RADAR_CUMULATIVE_KEYWORDS?.every((keyword) =>
|
||||
stringifiedTypebot.toLowerCase().includes(keyword)
|
||||
env.RADAR_CUMULATIVE_KEYWORDS?.some((set) =>
|
||||
set.every((keyword) => stringifiedTypebot.toLowerCase().includes(keyword))
|
||||
)
|
||||
)
|
||||
return 100
|
||||
|
||||
Reference in New Issue
Block a user