Fix question mark bug

This commit is contained in:
Maximilian Grundke
2017-08-23 15:37:48 +02:00
parent 530e727d6e
commit 280b4dbe0c

View File

@ -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