diff options
author | Nicolas Bouilleaud <nicolas.bouilleaud@gmail.com> | 2014-12-17 15:26:43 +0100 |
---|---|---|
committer | Nicolas Bouilleaud <nicolas.bouilleaud@gmail.com> | 2015-03-02 11:01:17 +0100 |
commit | 8d0690c5c768415a5dae1155c236f7650ea894cf (patch) | |
tree | 268f3c501fcd468a480450aceac2017a7220217c /lib | |
parent | 4e5bc1d5356e860be316656fd8c3393c468d24b6 (diff) | |
download | gitlab-ce-8d0690c5c768415a5dae1155c236f7650ea894cf.tar.gz |
Support names starting with a digit or _ for projects and users
This is what’s actually allowed when creating a user or a project in gitlab.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/markdown.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/markdown.rb b/lib/gitlab/markdown.rb index a1fd794aed2..d85c2ee4f2d 100644 --- a/lib/gitlab/markdown.rb +++ b/lib/gitlab/markdown.rb @@ -121,7 +121,7 @@ module Gitlab text end - NAME_STR = '[a-zA-Z][a-zA-Z0-9_\-\.]*' + NAME_STR = '[a-zA-Z0-9_][a-zA-Z0-9_\-\.]*' PROJ_STR = "(?<project>#{NAME_STR}/#{NAME_STR})" REFERENCE_PATTERN = %r{ |