diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-13 12:24:10 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-13 12:24:10 +0300 |
commit | 7825830ca51dc7bf84ca6216c3b66e3ce1c63c44 (patch) | |
tree | 17f05aaab8b6178ce20213447f3cea64722dceed /lib/gitlab/regex.rb | |
parent | a36195bd2853bfef1b6883eef64334767e12fcf1 (diff) | |
download | gitlab-ce-7825830ca51dc7bf84ca6216c3b66e3ce1c63c44.tar.gz |
Allow project name, path etc start with number. Fixed specs
Diffstat (limited to 'lib/gitlab/regex.rb')
-rw-r--r-- | lib/gitlab/regex.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/regex.rb b/lib/gitlab/regex.rb index 5eeb7c80184..b4be46d3b42 100644 --- a/lib/gitlab/regex.rb +++ b/lib/gitlab/regex.rb @@ -7,7 +7,7 @@ module Gitlab end def project_name_regex - /\A[a-zA-Z][a-zA-Z0-9_\-\. ]*\z/ + /\A[a-zA-Z0-9][a-zA-Z0-9_\-\. ]*\z/ end def name_regex @@ -21,7 +21,7 @@ module Gitlab protected def default_regex - /\A[a-zA-Z][a-zA-Z0-9_\-\.]*\z/ + /\A[a-zA-Z0-9][a-zA-Z0-9_\-\.]*\z/ end end end |