2
0
Files
bot/packages/bot-engine/variables/hasVariable.ts
2023-09-20 15:42:34 +02:00

2 lines
80 B
TypeScript

export const hasVariable = (str: string): boolean => /\{\{(.*?)\}\}/g.test(str)