diff options
-rw-r--r-- | app/lib/command_tag/processor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/command_tag/processor.rb b/app/lib/command_tag/processor.rb index 74dcb047d..1e177a015 100644 --- a/app/lib/command_tag/processor.rb +++ b/app/lib/command_tag/processor.rb @@ -55,7 +55,7 @@ class CommandTag::Processor next if statement.blank? || statement[0]&.strip.blank? statement = statement.scan(/^(.*) (?:start|begin|do)$(.*)|'([^']*)'|"([^"]*)"|(\S+)/im).flatten.compact - statement[0] = statement[0].strip.tr('- ', '_').downcase + statement[0] = statement[0].strip.tr(':.\- ', '_').gsub(/__+/, '_').downcase statement end.compact end |