Commit e00a6fbf authored by Shinya Maeda's avatar Shinya Maeda

Add patch and spec

parent 31d4fb4d
......@@ -38,7 +38,7 @@ module Gitlab
end
def environment_name_regex_chars
'a-zA-Z0-9_/\\$\\{\\}\\. -'
'a-zA-Z0-9_/\\$\\{\\}\\. \\-'
end
def environment_name_regex
......
# coding: utf-8
require 'spec_helper'
describe Gitlab::Regex do
describe '.environment_scope_regex' do
subject { described_class.environment_scope_regex }
it { is_expected.to match('foo') }
it { is_expected.to match('foo*Z') }
it { is_expected.not_to match('!!()()') }
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