fluent-transpiler 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -202,7 +202,7 @@ export const compile = (src, opts) => {
|
|
|
202
202
|
},
|
|
203
203
|
// Element
|
|
204
204
|
TextElement: (data) => {
|
|
205
|
-
return data.value
|
|
205
|
+
return data.value.replaceAll('`', '\\`') // escape string literal
|
|
206
206
|
},
|
|
207
207
|
Placeable: (data, parent) => {
|
|
208
208
|
return `${options.useIsolating ? '\u2068' : ''}\${${compileType(
|