🚸 (webhook) Stringify inline code for better reliability
This commit is contained in:
@@ -32,8 +32,10 @@ export const parseVariables =
|
|||||||
if (!text || text === '') return ''
|
if (!text || text === '') return ''
|
||||||
const textWithInlineCodeParsed = text.replace(
|
const textWithInlineCodeParsed = text.replace(
|
||||||
inlineCodeRegex,
|
inlineCodeRegex,
|
||||||
(_full, inlineCodeToEvaluate) =>
|
(_full, inlineCodeToEvaluate) => {
|
||||||
evaluateInlineCode(inlineCodeToEvaluate, { variables })
|
const value = evaluateInlineCode(inlineCodeToEvaluate, { variables })
|
||||||
|
return safeStringify(value) ?? value
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
return textWithInlineCodeParsed.replace(
|
return textWithInlineCodeParsed.replace(
|
||||||
|
|||||||
Reference in New Issue
Block a user