From d87aa9198e03f29a4aa2f34bba1f5c4ea11ef33d Mon Sep 17 00:00:00 2001 From: rpereira2 Date: Thu, 14 Feb 2019 17:01:39 +0530 Subject: Change name of regexp constant Since the regex is for the path of the api_url, change its name to API_URL_PATH_REGEXP. --- app/models/error_tracking/project_error_tracking_setting.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/error_tracking/project_error_tracking_setting.rb b/app/models/error_tracking/project_error_tracking_setting.rb index d31b6faf4f5..94c8a6ce3db 100644 --- a/app/models/error_tracking/project_error_tracking_setting.rb +++ b/app/models/error_tracking/project_error_tracking_setting.rb @@ -5,7 +5,7 @@ module ErrorTracking include Gitlab::Utils::StrongMemoize include ReactiveCaching - API_URL_REGEXP = %r{ + API_URL_PATH_REGEXP = %r{ \A (?/api/0/projects/+) (?: @@ -137,7 +137,7 @@ module ErrorTracking return end - url.path.match(API_URL_REGEXP) + url.path.match(API_URL_PATH_REGEXP) end def validate_api_url_path -- cgit v1.2.1