From 87771b905ad2a89a1236c5cbfb6cc44ea3ea6c3d Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Wed, 11 Jan 2023 23:50:22 +0100 Subject: [PATCH] Fix rubocop offenses --- app/controllers/exercises_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/exercises_controller.rb b/app/controllers/exercises_controller.rb index 7b676976..e197ee92 100644 --- a/app/controllers/exercises_controller.rb +++ b/app/controllers/exercises_controller.rb @@ -351,7 +351,7 @@ class ExercisesController < ApplicationController lti_json = lti_parameters.lti_parameters['launch_presentation_return_url'] @course_token = - if lti_json.present? && (match = lti_json.match(%r{^.*courses/([a-z0-9\-]+)/sections})) + if lti_json.present? && (match = lti_json.match(%r{^.*courses/([a-z0-9-]+)/sections})) match.captures.first else ''