From 114fcea2d358626ac7813f846a0a704f088b97ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=9Fur=20Aslan?= Date: Fri, 26 Jan 2024 12:03:09 +0100 Subject: [PATCH] fixed single quote escaping for all browsers --- src/lib/codegenerator/generator.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/codegenerator/generator.js b/src/lib/codegenerator/generator.js index fc562e76..d6362ece 100644 --- a/src/lib/codegenerator/generator.js +++ b/src/lib/codegenerator/generator.js @@ -326,8 +326,12 @@ const cast = (val = '', key = false, component = 'component.') => { if (val.startsWith('$')) { castedValue = `${component}${val.replace('$', '')}` } else { - // unescaped single quotes must be escaped - castedValue = `'${parseInlineContent(val.replace(/(?