From 280b4dbe0c00bd0716b6eafc60537bb299a80dd1 Mon Sep 17 00:00:00 2001 From: Maximilian Grundke Date: Wed, 23 Aug 2017 15:37:48 +0200 Subject: [PATCH] Fix question mark bug --- 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 ae111823..5a256b17 100644 --- a/app/controllers/submissions_controller.rb +++ b/app/controllers/submissions_controller.rb @@ -202,7 +202,7 @@ class SubmissionsController < ApplicationController if !@message_buffer.blank? @submission.exercise.execution_environment.error_templates.each do |template| pattern = Regexp.new(template.signature).freeze - if pattern.match?(@message_buffer) + if pattern.match(@message_buffer) StructuredError.create_from_template(template, @message_buffer) end end