@itrocks/template 0.0.18 → 0.0.19
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 +1 -1
- package/esm/template.js +1 -1
- package/package.json +1 -1
package/cjs/template.js
CHANGED
@@ -783,7 +783,7 @@ class Template {
|
|
783
783
|
this.start = this.index;
|
784
784
|
}
|
785
785
|
startsExpression(char, open = '{', close = '}') {
|
786
|
-
return RegExp('[a-z0-9"*.?\'' + open + close +
|
786
|
+
return RegExp('[a-z0-9"*.?\'' + open + close + this.prefixes + '-]', 'i').test(char);
|
787
787
|
}
|
788
788
|
trimEndLine(string) {
|
789
789
|
let index = string.length;
|
package/esm/template.js
CHANGED
@@ -778,7 +778,7 @@ export default class Template {
|
|
778
778
|
this.start = this.index;
|
779
779
|
}
|
780
780
|
startsExpression(char, open = '{', close = '}') {
|
781
|
-
return RegExp('[a-z0-9"*.?\'' + open + close +
|
781
|
+
return RegExp('[a-z0-9"*.?\'' + open + close + this.prefixes + '-]', 'i').test(char);
|
782
782
|
}
|
783
783
|
trimEndLine(string) {
|
784
784
|
let index = string.length;
|
package/package.json
CHANGED