Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e00a6fbf
Commit
e00a6fbf
authored
Dec 07, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add patch and spec
parent
31d4fb4d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
lib/gitlab/regex.rb
lib/gitlab/regex.rb
+1
-1
spec/ee/spec/lib/ee/gitlab/regex_spec.rb
spec/ee/spec/lib/ee/gitlab/regex_spec.rb
+12
-0
No files found.
lib/gitlab/regex.rb
View file @
e00a6fbf
...
...
@@ -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
...
...
spec/ee/spec/lib/ee/gitlab/regex_spec.rb
0 → 100644
View file @
e00a6fbf
# 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment