diff options
author | Douwe Maan <douwe@gitlab.com> | 2016-02-02 12:30:57 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2016-02-02 12:30:57 +0000 |
commit | 6cffcb05882b0d3c4a02f9acf21806e25ea09ec3 (patch) | |
tree | 547b86602842217723aa2964a60df6665a95de0f /spec | |
parent | 680d66db9e620bffed5bcacb902602009c45483e (diff) | |
parent | 72bd004b3114fad43feaa7d21e0c2cde4b5b6a0d (diff) | |
download | gitlab-ce-6cffcb05882b0d3c4a02f9acf21806e25ea09ec3.tar.gz |
Merge branch 'allow-@' into 'master'
Allow "@" in file names and path
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/4111
See merge request !2665
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/regex_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/lib/gitlab/regex_spec.rb b/spec/lib/gitlab/regex_spec.rb index d67ee423b9b..c51b10bdc69 100644 --- a/spec/lib/gitlab/regex_spec.rb +++ b/spec/lib/gitlab/regex_spec.rb @@ -21,4 +21,12 @@ describe Gitlab::Regex, lib: true do it { expect('Dash – is this').to match(Gitlab::Regex.project_name_regex) } it { expect('?gitlab').not_to match(Gitlab::Regex.project_name_regex) } end + + describe 'file name regex' do + it { expect('foo@bar').to match(Gitlab::Regex.file_name_regex) } + end + + describe 'file path regex' do + it { expect('foo@/bar').to match(Gitlab::Regex.file_path_regex) } + end end |