Skip to content

Commit

Permalink
🛂 (radar) Loosen cumulative keywords check
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Jan 10, 2024
1 parent 73d68f0 commit c1c053b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/radar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ export const computeRiskLevel = (typebot: any) => {
return 100
if (
env.RADAR_CUMULATIVE_KEYWORDS?.some((set) =>
set.every((keyword) => stringifiedTypebot.toLowerCase().includes(keyword))
set.every((keyword) =>
new RegExp(`(?<!https?://[^\\s"]*)\\b${keyword}\\b`, 'gi').test(
stringifiedTypebot
)
)
)
)
return 100
Expand Down

1 comment on commit c1c053b

@vercel
Copy link

@vercel vercel bot commented on c1c053b Jan 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-git-main-typebot-io.vercel.app
builder-v2-typebot-io.vercel.app
app.typebot.io

Please sign in to comment.