2
0

🐛 (text) Fix text bubble content parsing when starting with variable

Closes #1594
This commit is contained in:
Baptiste Arnaud
2024-06-24 15:03:18 +02:00
parent b10383e027
commit 7790cf4f27
5 changed files with 38 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
export const isSingleVariable = (value: string | undefined): boolean =>
!!value &&
value.startsWith('{{') &&
value.endsWith('}}') &&
value.split('{{').length === 2