2
0
Files
bot/packages/variables/isSingleVariable.ts

6 lines
172 B
TypeScript
Raw Normal View History

export const isSingleVariable = (value: string | undefined): boolean =>
!!value &&
value.startsWith('{{') &&
value.endsWith('}}') &&
value.split('{{').length === 2