Skip to content

Commit

Permalink
Update templatablepattern.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseman committed Apr 27, 2024
1 parent 7f7484d commit 18a518a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/src/core/templatablepattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,11 @@ TemplatablePattern.prototype.__set_templated_pattern = function() {
if (!this._disabled.php) {
items.push(this.__patterns.php._starting_pattern.source);
}
// Handlebars ('{{' and '}}') are also special tokens in Angular)
if (!this._disabled.handlebars || !this._disabled.angular) {
if (!this._disabled.handlebars) {
items.push(this.__patterns.handlebars._starting_pattern.source);
}
if (!this._disabled.angular) {
// Handlebars ('{{' and '}}') are also special tokens in Angular)
items.push(this.__patterns.handlebars._starting_pattern.source);
}
if (!this._disabled.erb) {
Expand Down

0 comments on commit 18a518a

Please sign in to comment.