diff options
-rw-r--r-- | app/models/error_tracking/project_error_tracking_setting.rb | 4 |
1 files 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 (?<prefix>/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 |