summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2019-06-05 18:26:06 +0200
committermfluharty <mfluharty@gitlab.com>2019-06-06 15:46:46 +0100
commit341f956a4c86eab8abfd931d6a3f5c4b527e4095 (patch)
tree87d598804344419dc3cd323b6d00f89c68de32e2
parent964b1f65d09ef3dd9d7d9a2be33d846c7fbda21c (diff)
downloadgitlab-ce-341f956a4c86eab8abfd931d6a3f5c4b527e4095.tar.gz
Do not escape forward slashes in Maskable REGEX
-rw-r--r--app/helpers/ci_variables_helper.rb2
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