diff options
author | rpereira2 <rpereira@gitlab.com> | 2019-02-14 17:01:39 +0530 |
---|---|---|
committer | rpereira2 <rpereira@gitlab.com> | 2019-02-14 17:01:39 +0530 |
commit | d87aa9198e03f29a4aa2f34bba1f5c4ea11ef33d (patch) | |
tree | d6d64e12316b4d1a975307c49755c294913eafe1 | |
parent | 2148061381e6d970b6fd923285805e90cad36899 (diff) | |
download | gitlab-ce-55199-validate-path.tar.gz |
Change name of regexp constant55199-validate-path
Since the regex is for the path of the api_url, change its name to
API_URL_PATH_REGEXP.
-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 |