Skip to content

Commit

Permalink
chore: for goodness' sake
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed May 8, 2024
1 parent 0e12b6e commit 3708ee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui-templates/lib/render.ts
Expand Up @@ -80,7 +80,7 @@ export const RenderPlugin = () => {

// Serialize into a js function
const chunks = html.split(/\{{2,3}\s*[^{}]+\s*\}{2,3}/g).map(chunk => JSON.stringify(chunk))
let hasMessages = chunks.length > 1
const hasMessages = chunks.length > 1
let templateString = chunks.shift()
for (const expression of html.matchAll(/\{{2,3}(\s*[^{}]+\s*)\}{2,3}/g)) {
templateString += ` + (${expression[1].trim()}) + ${chunks.shift()}`
Expand Down

0 comments on commit 3708ee8

Please sign in to comment.