From 18a518a89a89729585a3304fb9a7173fa6696258 Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Sat, 27 Apr 2024 12:01:55 -0700 Subject: [PATCH] Update templatablepattern.js --- js/src/core/templatablepattern.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/src/core/templatablepattern.js b/js/src/core/templatablepattern.js index 047305e7..6d6f1c9d 100644 --- a/js/src/core/templatablepattern.js +++ b/js/src/core/templatablepattern.js @@ -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) {