Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-28 03:09:24 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-28 03:09:24 +0300
commit63895155f203b6af2df0689474059c1c7dfcfac8 (patch)
tree301f7d43471cbb7b19bf92561578e6cef8d28b99 /app/helpers
parent936139e69ce259283d02877bcb23ca77f65e2c60 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/ci/variables_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/ci/variables_helper.rb b/app/helpers/ci/variables_helper.rb
index 84572363a8d..a492c48e58c 100644
--- a/app/helpers/ci/variables_helper.rb
+++ b/app/helpers/ci/variables_helper.rb
@@ -47,6 +47,10 @@ module Ci
]
end
+ def ci_variable_maskable_raw_regex
+ Ci::Maskable::MASK_AND_RAW_REGEX.inspect.sub('\\A', '^').sub('\\z', '$')[1...-1]
+ end
+
def ci_variable_maskable_regex
Ci::Maskable::REGEX.inspect.sub('\\A', '^').sub('\\z', '$').sub(%r{^/}, '').sub(%r{/[a-z]*$}, '').gsub('\/', '/')
end