Remove gsub from matcher

This commit is contained in:
Sebastian Serth
2019-12-17 12:20:21 +01:00
parent 204258ee7f
commit 8eddcd44bc

View File

@ -239,7 +239,7 @@ class SubmissionsController < ApplicationController
# If no test command is set, use the run_command for the RegEx below. Otherwise, no output will be displayed!
test_command = run_command
end
unless /root|workspace|#{run_command.gsub('.', '\.')}|#{test_command}/.match(message)
unless /root|workspace|#{run_command}|#{test_command}/.match(message)
parse_message(message, 'stdout', tubesock)
end
end