From 8eddcd44bcb9f3fc6d61feed9b0e1068b249e739 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Tue, 17 Dec 2019 12:20:21 +0100 Subject: [PATCH] Remove gsub from matcher --- app/controllers/submissions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/submissions_controller.rb b/app/controllers/submissions_controller.rb index d4bb0a66..7256077c 100644 --- a/app/controllers/submissions_controller.rb +++ b/app/controllers/submissions_controller.rb @@ -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