diff options
author | Matija Čupić <matteeyah@gmail.com> | 2019-06-05 18:26:06 +0200 |
---|---|---|
committer | mfluharty <mfluharty@gitlab.com> | 2019-06-06 15:46:46 +0100 |
commit | 341f956a4c86eab8abfd931d6a3f5c4b527e4095 (patch) | |
tree | 87d598804344419dc3cd323b6d00f89c68de32e2 /app | |
parent | 964b1f65d09ef3dd9d7d9a2be33d846c7fbda21c (diff) | |
download | gitlab-ce-341f956a4c86eab8abfd931d6a3f5c4b527e4095.tar.gz |
Do not escape forward slashes in Maskable REGEX
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/ci_variables_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/ci_variables_helper.rb b/app/helpers/ci_variables_helper.rb index 3f01ed5669e..fc51f00d052 100644 --- a/app/helpers/ci_variables_helper.rb +++ b/app/helpers/ci_variables_helper.rb @@ -29,6 +29,6 @@ module CiVariablesHelper end def ci_variable_maskable_regex - Maskable::REGEX.inspect.sub('\\A', '^').sub('\\z', '$').sub(/^\//, '').sub(/\/[a-z]*$/, '') + Maskable::REGEX.inspect.sub('\\A', '^').sub('\\z', '$').sub(/^\//, '').sub(/\/[a-z]*$/, '').gsub('\/', '/') end end |