File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
2- "version" : " 0.5.24 " ,
2+ "version" : " 0.5.25 " ,
33 "author" : " 90dy" ,
44 "license" : " MIT" ,
55 "workspace" : [
Original file line number Diff line number Diff line change 2020 "exports" : {
2121 "." : " ./mod.ts"
2222 },
23- "version" : " 0.5.24 "
23+ "version" : " 0.5.25 "
2424}
Original file line number Diff line number Diff line change @@ -318,10 +318,14 @@ class TemplateClass<T = unknown> extends String {
318318 throw ?: boolean ;
319319 } ,
320320 ) {
321+ const substTemplateRaw = [ ]
322+ for ( let i = 0 ; i < template . raw . length ; i ++ ) {
323+ substTemplateRaw . push ( template . raw [ i ] . replace ( / \\ ( [ ` $ ] ) / g, "$1" ) )
324+ }
321325 const raw = String . raw (
322- template ,
326+ { raw : substTemplateRaw } ,
323327 ...substitutions
324- ) . replace ( / \\ ( [ ` $ ] ) / g , "$1" ) ;
328+ )
325329
326330 let str = raw . toString ( ) ;
327331
Original file line number Diff line number Diff line change 2929 "bin" : {
3030 "tmpl-gen" : " ./runner.ts"
3131 },
32- "version" : " 0.5.24 "
32+ "version" : " 0.5.25 "
3333}
Original file line number Diff line number Diff line change 33 "displayName" : " TypeScript Template Engine" ,
44 "description" : " Use TypeScript as a template engine with syntax highlighting for template tag functions" ,
55 "publisher" : " 90dy" ,
6- "version" : " 0.5.24 " ,
6+ "version" : " 0.5.25 " ,
77 "icon" : " icon.png" ,
88 "engines" : {
99 "vscode" : " ^1.60.0"
647647 }
648648 ]
649649 }
650- }
650+ }
You can’t perform that action at this time.
0 commit comments