@itrocks/template 0.0.14 → 0.0.16
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/README.md +5 -5
- package/cjs/template.js +2 -2
- package/esm/template.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
[](https://www.npmjs.org/package/@itrocks/template)
|
2
|
+
[](https://www.npmjs.org/package/@itrocks/template)
|
3
|
+
[](https://github.com/itrocks-ts/template)
|
4
|
+
[](https://github.com/itrocks-ts/template/issues)
|
5
|
+
[](https://discord.gg/RZYhmhgrCk)
|
6
6
|
|
7
7
|
# template
|
8
8
|
|
package/cjs/template.js
CHANGED
@@ -393,8 +393,8 @@ class Template {
|
|
393
393
|
// comment tag
|
394
394
|
if ((char === '-') && (source[index] === '-')) {
|
395
395
|
index++;
|
396
|
-
if (
|
397
|
-
|| !this.
|
396
|
+
if (!this.doExpression
|
397
|
+
|| !this.startsExpression(source[index])
|
398
398
|
|| ((source[index] === 'B') && this.included && (source.substring(index, index + 8) === 'BEGIN-->'))
|
399
399
|
|| ((source[index] === 'E') && this.included && (source.substring(index, index + 6) === 'END-->'))) {
|
400
400
|
index = source.indexOf('-->', index) + 3;
|
package/esm/template.js
CHANGED
@@ -388,8 +388,8 @@ export default class Template {
|
|
388
388
|
// comment tag
|
389
389
|
if ((char === '-') && (source[index] === '-')) {
|
390
390
|
index++;
|
391
|
-
if (
|
392
|
-
|| !this.
|
391
|
+
if (!this.doExpression
|
392
|
+
|| !this.startsExpression(source[index])
|
393
393
|
|| ((source[index] === 'B') && this.included && (source.substring(index, index + 8) === 'BEGIN-->'))
|
394
394
|
|| ((source[index] === 'E') && this.included && (source.substring(index, index + 6) === 'END-->'))) {
|
395
395
|
index = source.indexOf('-->', index) + 3;
|
package/package.json
CHANGED