Skip to content

Commit 5a0936b

Browse files
Fix template strings
1 parent 8566b79 commit 5a0936b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Transpiler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,9 +705,9 @@ export class LuaTranspiler {
705705
node.templateSpans.forEach(span => {
706706
const expr = this.transpileExpression(span.expression, true);
707707
if (ts.isTemplateTail(span.literal)) {
708-
parts.push(expr + `.."${span.literal.text}"`);
708+
parts.push(`tostring(${expr}).."${span.literal.text}"`);
709709
} else {
710-
parts.push(expr + `.."${span.literal.text}"`);
710+
parts.push(`tostring(${expr}).."${span.literal.text}"`);
711711
}
712712
});
713713
return parts.join("..");

0 commit comments

Comments
 (0)