Skip to content

Commit 4e4d0fd

Browse files
committed
fix: interpret
1 parent 6d12268 commit 4e4d0fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

interpreter.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ export class Interpreter implements Runtime {
5454
executeAst(ast: AstTemplate, parameters: FormatParameters): string {
5555
const [strings, values] = ast;
5656
return this._taggedTemplate(
57-
Object.assign(strings, { raw: strings }),
57+
Object.assign(strings, {
58+
raw: strings.map((string) => String.raw`${string}`),
59+
}),
5860
...values.map(([valueName, methods]) => {
5961
const self = parameters[valueName];
6062

0 commit comments

Comments
 (0)