Commit 341f956a authored by Matija Čupić's avatar Matija Čupić Committed by mfluharty

Do not escape forward slashes in Maskable REGEX

parent 964b1f65
...@@ -29,6 +29,6 @@ module CiVariablesHelper ...@@ -29,6 +29,6 @@ module CiVariablesHelper
end end
def ci_variable_maskable_regex 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
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment