about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/command_tag/processor.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/lib/command_tag/processor.rb b/app/lib/command_tag/processor.rb
index 02e835474..574bf6ad4 100644
--- a/app/lib/command_tag/processor.rb
+++ b/app/lib/command_tag/processor.rb
@@ -95,10 +95,10 @@ class CommandTag::Processor
 
   def parse_templates(text)
     text.gsub(TEMPLATE_RE) do
-      return if Regexp.last_match(1).blank?
+      next if Regexp.last_match(1).blank?
 
-      template = Regexp.last_match(1).scan(/'([^']*)'|"([^"]*)"|(\S+)/).flatten.compact
-      return if template[0].blank?
+      template = Regexp.last_match(1).scan(/('[^']*')|("[^"]*")|(\S+)/).flatten.compact
+      next if template[0].blank?
 
       name      = normalize(template[0])
       separator = "\n"