about summary refs log tree commit diff
path: root/app/lib/command_tag/processor.rb
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-07-26 03:39:18 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:16 -0500
commite2bd72f3beb534795fbe06c0307097987cf5486a (patch)
treef5d654af8593139532925e87a73640f14c0ab396 /app/lib/command_tag/processor.rb
parentebc991b3059cfdac23e085c8333ae23d3f01a9de (diff)
[Command Tags, Revise] Use %%...%% for templates instead of {%...%}
Diffstat (limited to 'app/lib/command_tag/processor.rb')
-rw-r--r--app/lib/command_tag/processor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/command_tag/processor.rb b/app/lib/command_tag/processor.rb
index e6bd672c1..9e9812bb6 100644
--- a/app/lib/command_tag/processor.rb
+++ b/app/lib/command_tag/processor.rb
@@ -17,7 +17,7 @@ class CommandTag::Processor
 
   STATEMENT_RE = /^\s*#!\s*([^\n]+ (?:start|begin|do)$.*)\n\s*#!\s*(?:end|stop|done)\s*$|^\s*#!\s*(.*?)\s*$/im.freeze
   STATEMENT_STRIP_RE = /^\s*#!\s*(?:[^\n]+ (?:start|begin|do)$.*)\n\s*#!\s*(?:end|stop|done)\s*$\n?|^\s*#!\s*(?:.*?)\s*$\n?/im.freeze
-  TEMPLATE_RE = /\{%\s*(.*?)\s*%\}/.freeze
+  TEMPLATE_RE = /%%\s*(.*?)\s*%%/.freeze
   ESCAPE_MAP = {
     '\n' => "\n",
     '\r' => "\r",