2 lines
80 B
TypeScript
2 lines
80 B
TypeScript
export const hasVariable = (str: string): boolean => /\{\{(.*?)\}\}/g.test(str)
|
export const hasVariable = (str: string): boolean => /\{\{(.*?)\}\}/g.test(str)
|