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