@itrocks/template 0.1.2 → 0.1.3

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/cjs/template.js CHANGED
@@ -119,7 +119,7 @@ class Template {
119
119
  if (text !== '') {
120
120
  text = (parts && /^(\$[1-9][0-9]*)+$/.test(text))
121
121
  ? parts.join('')
122
- : this.applyLiterals(text, parts?.map(part => ((typeof part)[0] === 's') ? this.applyLiterals(part) : part));
122
+ : this.applyLiterals(text, parts?.map(part => (((typeof part)[0] === 's') && (part[0] !== '<')) ? this.applyLiterals(part) : part));
123
123
  }
124
124
  return original.substring(0, left) + text + original.substring(right);
125
125
  }
package/esm/template.js CHANGED
@@ -114,7 +114,7 @@ export class Template {
114
114
  if (text !== '') {
115
115
  text = (parts && /^(\$[1-9][0-9]*)+$/.test(text))
116
116
  ? parts.join('')
117
- : this.applyLiterals(text, parts?.map(part => ((typeof part)[0] === 's') ? this.applyLiterals(part) : part));
117
+ : this.applyLiterals(text, parts?.map(part => (((typeof part)[0] === 's') && (part[0] !== '<')) ? this.applyLiterals(part) : part));
118
118
  }
119
119
  return original.substring(0, left) + text + original.substring(right);
120
120
  }
package/package.json CHANGED
@@ -69,5 +69,5 @@
69
69
  "test": "test/test"
70
70
  },
71
71
  "types": "./esm/template.d.ts",
72
- "version": "0.1.2"
72
+ "version": "0.1.3"
73
73
  }